Skip to content

Commit 7c8298c

Browse files
committed
jsonrpc2: use %v verb
1 parent 44b084f commit 7c8298c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jsonrpc2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func (c *Conn) Call(ctx context.Context, method string, params, result interface
190190
c.Logger.Debug("Call")
191191
p, err := c.marshalInterface(params)
192192
if err != nil {
193-
return Errorf(CodeParseError, "failed to marshaling call parameters: %w", err)
193+
return Errorf(CodeParseError, "failed to marshaling call parameters: %v", err)
194194
}
195195

196196
id := ID{Number: c.seq.Add(1)}
@@ -204,7 +204,7 @@ func (c *Conn) Call(ctx context.Context, method string, params, result interface
204204
// marshal the request now it is complete
205205
data, err := json.Marshal(req) // TODO(zchee): use gojay
206206
if err != nil {
207-
return Errorf(CodeParseError, "failed to marshaling call request: %w", err)
207+
return Errorf(CodeParseError, "failed to marshaling call request: %v", err)
208208
}
209209

210210
rchan := make(chan *Response)

0 commit comments

Comments
 (0)