Skip to content

Commit 44d983d

Browse files
authored
Merge pull request #1185 from CreativeCactus/patch-1
Replace %v with %w for error
2 parents 8ae478e + c81a54c commit 44d983d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ func (f *MyJSONFormatter) Format(entry *Entry) ([]byte, error) {
402402
// source of the official loggers.
403403
serialized, err := json.Marshal(entry.Data)
404404
if err != nil {
405-
return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err)
405+
return nil, fmt.Errorf("Failed to marshal fields to JSON, %w", err)
406406
}
407407
return append(serialized, '\n'), nil
408408
}

0 commit comments

Comments
 (0)