aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-08-15 21:23:29 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-08-15 21:23:29 +0800
commit5c5c3930b708e55ea119329f7da504944ebdd73c (patch)
treeaf55b1cf2e207fac2b968f9925a92ed0d7736b5d /cmd
parentcd81356acef707e077622791a88864a221fa13be (diff)
parent87d1cde7e4a8dbb3100af177fdfbf25314143c0f (diff)
downloaddexon-5c5c3930b708e55ea119329f7da504944ebdd73c.tar
dexon-5c5c3930b708e55ea119329f7da504944ebdd73c.tar.gz
dexon-5c5c3930b708e55ea119329f7da504944ebdd73c.tar.bz2
dexon-5c5c3930b708e55ea119329f7da504944ebdd73c.tar.lz
dexon-5c5c3930b708e55ea119329f7da504944ebdd73c.tar.xz
dexon-5c5c3930b708e55ea119329f7da504944ebdd73c.tar.zst
dexon-5c5c3930b708e55ea119329f7da504944ebdd73c.zip
Merge pull request #1659 from bas-vk/exec-output
Javascript --exec output
Diffstat (limited to 'cmd')
-rw-r--r--cmd/geth/js.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/cmd/geth/js.go b/cmd/geth/js.go
index 04b44d6a9..c31deefdd 100644
--- a/cmd/geth/js.go
+++ b/cmd/geth/js.go
@@ -228,15 +228,10 @@ func (self *jsre) loadAutoCompletion() {
}
func (self *jsre) batch(statement string) {
- val, err := self.re.Run(statement)
+ err := self.re.EvalAndPrettyPrint(statement)
if err != nil {
fmt.Printf("error: %v", err)
- } else if val.IsDefined() && val.IsObject() {
- obj, _ := self.re.Get("ret_result")
- fmt.Printf("%v", obj)
- } else if val.IsDefined() {
- fmt.Printf("%v", val)
}
if self.atexit != nil {