Skip to content

Commit

Permalink
Merge pull request sirupsen#901 from CodeLingoBot/rewrite
Browse files Browse the repository at this point in the history
Fix error formatting based on best practices from Code Review Comments
  • Loading branch information
lavoiesl authored Mar 11, 2019
2 parents d7b6bf5 + 774bb8e commit 131eba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json_formatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) {
encoder.SetIndent("", " ")
}
if err := encoder.Encode(data); err != nil {
return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err)
return nil, fmt.Errorf("failed to marshal fields to JSON, %v", err)
}

return b.Bytes(), nil
Expand Down

0 comments on commit 131eba2

Please sign in to comment.