Этот коммит содержится в:
Ben Schumacher
2019-10-29 07:45:09 +01:00
коммит произвёл GitHub
родитель d7649fbf31
Коммит 7a665aacdd
16 изменённых файлов: 33 добавлений и 47 удалений

Просмотреть файл

@@ -41,7 +41,7 @@ func parseLogMessage(msg string) (result LogEntry, err error) {
} else {
d, ok := token.(json.Delim)
if !ok || d != '{' {
return result, errors.New(fmt.Sprintf("input is not a JSON object, found: %v", token))
return result, fmt.Errorf("input is not a JSON object, found: %v", token)
}
}
@@ -110,7 +110,7 @@ func parseLogMessage(msg string) (result LogEntry, err error) {
} else {
d, ok := token.(json.Delim)
if !ok || d != '}' {
return result, errors.New(fmt.Sprintf("failed to read '}', read: %v", token))
return result, fmt.Errorf("failed to read '}', read: %v", token)
}
}