From 87d1cde7e4a8dbb3100af177fdfbf25314143c0f Mon Sep 17 00:00:00 2001 From: Bas van Kervel Date: Fri, 14 Aug 2015 13:06:34 +0200 Subject: main print console output for js statement given by the exec argument --- cmd/geth/js.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'cmd/geth') 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 { -- cgit