aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-11 07:24:40 +0800
committerobscuren <geffobscura@gmail.com>2015-05-11 17:39:33 +0800
commitdf323cdb4e1aaab8e57cb1809a0bc5e47d307260 (patch)
tree13c239346f379566aed3a826d57573e54070e9ef
parenta2919b5e17197afcb689b8f4144f255a5872f85d (diff)
downloadgo-tangerine-df323cdb4e1aaab8e57cb1809a0bc5e47d307260.tar
go-tangerine-df323cdb4e1aaab8e57cb1809a0bc5e47d307260.tar.gz
go-tangerine-df323cdb4e1aaab8e57cb1809a0bc5e47d307260.tar.bz2
go-tangerine-df323cdb4e1aaab8e57cb1809a0bc5e47d307260.tar.lz
go-tangerine-df323cdb4e1aaab8e57cb1809a0bc5e47d307260.tar.xz
go-tangerine-df323cdb4e1aaab8e57cb1809a0bc5e47d307260.tar.zst
go-tangerine-df323cdb4e1aaab8e57cb1809a0bc5e47d307260.zip
rpc: display error message to stdout
-rw-r--r--rpc/jeth.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/jeth.go b/rpc/jeth.go
index 4739316b2..a08f9be8f 100644
--- a/rpc/jeth.go
+++ b/rpc/jeth.go
@@ -2,6 +2,7 @@ package rpc
import (
"encoding/json"
+ "fmt"
"github.com/ethereum/go-ethereum/jsre"
"github.com/robertkrimen/otto"
@@ -52,6 +53,7 @@ func (self *Jeth) Send(call otto.FunctionCall) (response otto.Value) {
var respif interface{}
err = self.ethApi.GetRequestReply(&req, &respif)
if err != nil {
+ fmt.Println("Error response:", err)
return self.err(call, -32603, err.Error(), req.Id)
}
call.Otto.Set("ret_jsonrpc", jsonrpcver)