Fix: error msg with uppercase, usage missed pt-

This commit is contained in:
Yoann La Cancellera
2023-09-14 10:24:14 +02:00
parent 5638387713
commit 6d6f30372c
6 changed files with 24 additions and 21 deletions

View File

@@ -12,7 +12,7 @@ import (
func internalRegexSubmatch(regex *regexp.Regexp, log string) ([]string, error) {
slice := regex.FindStringSubmatch(log)
if len(slice) == 0 {
return nil, errors.New(fmt.Sprintf("Could not find submatch from log \"%s\" using pattern \"%s\"", log, regex.String()))
return nil, errors.New(fmt.Sprintf("could not find submatch from log \"%s\" using pattern \"%s\"", log, regex.String()))
}
return slice, nil
}