Skip to content

Commit

Permalink
Bypass Errorf for unformatted messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Dec 24, 2021
1 parent 9d2d659 commit 5926132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func isValidID(v json.RawMessage) bool {
}

func (j *jmessage) fail(code code.Code, msg string) {
j.err = Errorf(code, msg)
j.err = &Error{Code: code, Message: msg}
}

func (j *jmessage) toJSON() ([]byte, error) {
Expand Down

0 comments on commit 5926132

Please sign in to comment.