aboutsummaryrefslogtreecommitdiffstats
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
parentcd81356acef707e077622791a88864a221fa13be (diff)
parent87d1cde7e4a8dbb3100af177fdfbf25314143c0f (diff)
downloadgo-tangerine-5c5c3930b708e55ea119329f7da504944ebdd73c.tar.gz
go-tangerine-5c5c3930b708e55ea119329f7da504944ebdd73c.tar.zst
go-tangerine-5c5c3930b708e55ea119329f7da504944ebdd73c.zip
Merge pull request #1659 from bas-vk/exec-output
Javascript --exec output
-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 {