diff options
Diffstat (limited to 'cmd/geth/js.go')
-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 { |