aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/http
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-27 03:21:16 +0800
committerobscuren <geffobscura@gmail.com>2015-02-27 03:21:16 +0800
commitfa7deb10f636d89f668249b78792f8cc48146ee8 (patch)
treea9531d9e14c15abd72625a98a21a9b988dc32319 /rpc/http
parentb2a225a52e45315f3ec90e11707fefa6059d13f5 (diff)
parente235b57234a68a8a39cfe7691a1825d8c6bb3443 (diff)
downloaddexon-fa7deb10f636d89f668249b78792f8cc48146ee8.tar
dexon-fa7deb10f636d89f668249b78792f8cc48146ee8.tar.gz
dexon-fa7deb10f636d89f668249b78792f8cc48146ee8.tar.bz2
dexon-fa7deb10f636d89f668249b78792f8cc48146ee8.tar.lz
dexon-fa7deb10f636d89f668249b78792f8cc48146ee8.tar.xz
dexon-fa7deb10f636d89f668249b78792f8cc48146ee8.tar.zst
dexon-fa7deb10f636d89f668249b78792f8cc48146ee8.zip
Merge branch 'develop'
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
}