From 5926132dfc0c503da3cb3d0d3ee2a34fd092aec5 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Fri, 24 Dec 2021 11:38:58 -0800 Subject: [PATCH] Bypass Errorf for unformatted messages. --- json.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json.go b/json.go index c40d18fb..4b6f7125 100644 --- a/json.go +++ b/json.go @@ -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) {