aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/http
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/http
parent43acad81b3fbee608bf19e6ba32ba27b98d9a7ff (diff)
downloaddexon-c8e9abff53d869f74211e157abcb2827d181e106.tar.gz
dexon-c8e9abff53d869f74211e157abcb2827d181e106.tar.zst
dexon-c8e9abff53d869f74211e157abcb2827d181e106.zip
Remove errParseRequest
Diffstat (limited to 'rpc/http')
-rw-r--r--rpc/http/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/http/server.go b/rpc/http/server.go
index dd6ba68e3..fa66eed48 100644
--- a/rpc/http/server.go
+++ b/rpc/http/server.go
@@ -92,7 +92,7 @@ func (s *RpcHttpServer) apiHandler(api *rpc.EthereumApi) http.Handler {
reqParsed, reqerr := JSON.ParseRequestBody(req)
if reqerr != nil {
- jsonerr := &rpc.RpcErrorObject{-32700, rpc.ErrorParseRequest}
+ jsonerr := &rpc.RpcErrorObject{-32700, "Error: Could not parse request"}
JSON.Send(w, &rpc.RpcErrorResponse{JsonRpc: jsonrpcver, ID: nil, Error: jsonerr})
return
}