aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/http
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-27 03:21:41 +0800
committerobscuren <geffobscura@gmail.com>2015-02-27 03:21:41 +0800
commit76f6d75ef867e754264834fc7171d1a12f24c5bb (patch)
treea9531d9e14c15abd72625a98a21a9b988dc32319 /rpc/http
parentb2a225a52e45315f3ec90e11707fefa6059d13f5 (diff)
parentfa7deb10f636d89f668249b78792f8cc48146ee8 (diff)
downloadgo-tangerine-76f6d75ef867e754264834fc7171d1a12f24c5bb.tar
go-tangerine-76f6d75ef867e754264834fc7171d1a12f24c5bb.tar.gz
go-tangerine-76f6d75ef867e754264834fc7171d1a12f24c5bb.tar.bz2
go-tangerine-76f6d75ef867e754264834fc7171d1a12f24c5bb.tar.lz
go-tangerine-76f6d75ef867e754264834fc7171d1a12f24c5bb.tar.xz
go-tangerine-76f6d75ef867e754264834fc7171d1a12f24c5bb.tar.zst
go-tangerine-76f6d75ef867e754264834fc7171d1a12f24c5bb.zip
Merge branch 'master' into hotfix/0.8.5-2
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
}