From c664a1b420c6a69f93f5ff739d721d20b6d356ae Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 1 Nov 2017 18:06:03 +0900 Subject: [PATCH] ing --- protocol/json/client.go | 2 +- protocol/json/client_response.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/json/client.go b/protocol/json/client.go index 933572b..112ed1d 100644 --- a/protocol/json/client.go +++ b/protocol/json/client.go @@ -34,7 +34,7 @@ type clientRequest struct { type clientResponse struct { Version string `json:"jsonrpc"` Result *json.RawMessage `json:"result"` - Error interface{} `json:"error"` + Error error `json:"error"` ID interface{} `json:"id"` } diff --git a/protocol/json/client_response.go b/protocol/json/client_response.go index f1398e7..b1d29db 100644 --- a/protocol/json/client_response.go +++ b/protocol/json/client_response.go @@ -52,7 +52,7 @@ func (ccr *ClientCodecResponse) Result() interface{} { } func (ccr *ClientCodecResponse) Error() error { - return ccr.response.Error.(error) + return ccr.response.Error } func (ccr *ClientCodecResponse) Complete() {