diff options
author | Bas van Kervel <bas@ethdev.com> | 2015-08-14 19:06:34 +0800 |
---|---|---|
committer | Bas van Kervel <bas@ethdev.com> | 2015-08-14 19:06:34 +0800 |
commit | 87d1cde7e4a8dbb3100af177fdfbf25314143c0f (patch) | |
tree | 345bb67031e4907c384dce7b15fd477978c963c6 /cmd | |
parent | 0ef80bb3d05ecb44297d25c889a85555bc55ef0c (diff) | |
download | dexon-87d1cde7e4a8dbb3100af177fdfbf25314143c0f.tar dexon-87d1cde7e4a8dbb3100af177fdfbf25314143c0f.tar.gz dexon-87d1cde7e4a8dbb3100af177fdfbf25314143c0f.tar.bz2 dexon-87d1cde7e4a8dbb3100af177fdfbf25314143c0f.tar.lz dexon-87d1cde7e4a8dbb3100af177fdfbf25314143c0f.tar.xz dexon-87d1cde7e4a8dbb3100af177fdfbf25314143c0f.tar.zst dexon-87d1cde7e4a8dbb3100af177fdfbf25314143c0f.zip |
main print console output for js statement given by the exec argument
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/geth/js.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cmd/geth/js.go b/cmd/geth/js.go index 485e17697..c5b25fe98 100644 --- a/cmd/geth/js.go +++ b/cmd/geth/js.go @@ -232,15 +232,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 { |