diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-11 16:53:53 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-11 16:53:53 +0800 |
commit | 0ad5898c0f9b0d777818d89356b74606f4b3c988 (patch) | |
tree | dce4e31dedd9e92f26c5203d0f62dc4ae2d59044 /rpc/http.go | |
parent | 00280e62e3c422b2824a0280015b7b78578ab16d (diff) | |
download | dexon-0ad5898c0f9b0d777818d89356b74606f4b3c988.tar.gz dexon-0ad5898c0f9b0d777818d89356b74606f4b3c988.tar.zst dexon-0ad5898c0f9b0d777818d89356b74606f4b3c988.zip |
rpc, xeth: fix #881, gracefully handle offline whisper
Diffstat (limited to 'rpc/http.go')
-rw-r--r-- | rpc/http.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/http.go b/rpc/http.go index 4760601d8..c5bb10c80 100644 --- a/rpc/http.go +++ b/rpc/http.go @@ -116,7 +116,7 @@ func RpcResponse(api *EthereumApi, request *RpcRequest) *interface{} { switch reserr.(type) { case nil: response = &RpcSuccessResponse{Jsonrpc: jsonrpcver, Id: request.Id, Result: reply} - case *NotImplementedError: + case *NotImplementedError, *NotAvailableError: jsonerr := &RpcErrorObject{-32601, reserr.Error()} response = &RpcErrorResponse{Jsonrpc: jsonrpcver, Id: request.Id, Error: jsonerr} case *DecodeParamError, *InsufficientParamsError, *ValidationError, *InvalidTypeError: |