diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-25 02:22:08 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-25 02:22:08 +0800 |
commit | c8e9abff53d869f74211e157abcb2827d181e106 (patch) | |
tree | 52908101f2c9e5184c40c27ca14aa6caf75e1308 /rpc/ws | |
parent | 43acad81b3fbee608bf19e6ba32ba27b98d9a7ff (diff) | |
download | go-tangerine-c8e9abff53d869f74211e157abcb2827d181e106.tar.gz go-tangerine-c8e9abff53d869f74211e157abcb2827d181e106.tar.zst go-tangerine-c8e9abff53d869f74211e157abcb2827d181e106.zip |
Remove errParseRequest
Diffstat (limited to 'rpc/ws')
-rw-r--r-- | rpc/ws/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/ws/server.go b/rpc/ws/server.go index b8cc2fa6b..2c2988f5d 100644 --- a/rpc/ws/server.go +++ b/rpc/ws/server.go @@ -99,7 +99,7 @@ func sockHandler(api *rpc.EthereumApi) websocket.Handler { // reqParsed, reqerr := JSON.ParseRequestBody(conn.Request()) if err := websocket.JSON.Receive(conn, &reqParsed); err != nil { - jsonerr := &rpc.RpcErrorObject{-32700, rpc.ErrorParseRequest} + jsonerr := &rpc.RpcErrorObject{-32700, "Error: Could not parse request"} JSON.Send(conn, &rpc.RpcErrorResponse{JsonRpc: jsonrpcver, ID: nil, Error: jsonerr}) continue } |