aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/ws
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-02-25 02:22:08 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-02-25 02:22:08 +0800
commitc8e9abff53d869f74211e157abcb2827d181e106 (patch)
tree52908101f2c9e5184c40c27ca14aa6caf75e1308 /rpc/ws
parent43acad81b3fbee608bf19e6ba32ba27b98d9a7ff (diff)
downloadgo-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.go2
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
}