diff --git a/pkg/rpc/client/wsclient.go b/pkg/rpc/client/wsclient.go index 95fd7f256..6898a1055 100644 --- a/pkg/rpc/client/wsclient.go +++ b/pkg/rpc/client/wsclient.go @@ -257,7 +257,7 @@ writeloop: break writeloop } if err := c.ws.WriteJSON(req); err != nil { - connCloseErr = fmt.Errorf("failed to write JSON request: %w", err) + connCloseErr = fmt.Errorf("failed to write JSON request (%s / %d): %w", req.Method, len(req.RawParams), err) break writeloop } case <-pingTicker.C: