This commit is contained in:
crusader 2017-11-01 18:06:03 +09:00
parent d9973215da
commit c664a1b420
2 changed files with 2 additions and 2 deletions

View File

@ -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"`
}

View File

@ -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() {