aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/http/server.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-02-25 05:00:39 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-02-25 05:00:39 +0800
commit52ccaa605e2a693bda64ac7d9fadf88d669ac446 (patch)
tree3535f3fc761f15de266364b5cfd741cbb40c8603 /rpc/http/server.go
parented90efb05b2cfedf36c263f6974b8748d757a543 (diff)
parent2e3a6e2559d02ba90957eaf333e571dec935e00a (diff)
downloadgo-tangerine-52ccaa605e2a693bda64ac7d9fadf88d669ac446.tar
go-tangerine-52ccaa605e2a693bda64ac7d9fadf88d669ac446.tar.gz
go-tangerine-52ccaa605e2a693bda64ac7d9fadf88d669ac446.tar.bz2
go-tangerine-52ccaa605e2a693bda64ac7d9fadf88d669ac446.tar.lz
go-tangerine-52ccaa605e2a693bda64ac7d9fadf88d669ac446.tar.xz
go-tangerine-52ccaa605e2a693bda64ac7d9fadf88d669ac446.tar.zst
go-tangerine-52ccaa605e2a693bda64ac7d9fadf88d669ac446.zip
Merge pull request #379 from tgerring/rpcupdates
RPC cleanup
Diffstat (limited to 'rpc/http/server.go')
-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
}