Skip to content

Commit

Permalink
Merge pull request #1185 from CreativeCactus/patch-1
Browse files Browse the repository at this point in the history
Replace %v with %w for error
  • Loading branch information
dgsb authored Dec 17, 2020
2 parents 8ae478e + c81a54c commit 44d983d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ func (f *MyJSONFormatter) Format(entry *Entry) ([]byte, error) {
// source of the official loggers.
serialized, err := json.Marshal(entry.Data)
if err != nil {
return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err)
return nil, fmt.Errorf("Failed to marshal fields to JSON, %w", err)
}
return append(serialized, '\n'), nil
}
Expand Down

0 comments on commit 44d983d

Please sign in to comment.