From acc8f7fadcf7fcb382a84c65c488e615edcfeb36 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 16 Jan 2015 14:51:38 +0100 Subject: [PATCH] Add defer rescued back in --- cmd/ethereum/repl/repl.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/ethereum/repl/repl.go b/cmd/ethereum/repl/repl.go index 78bb19cec..4a7880ff4 100644 --- a/cmd/ethereum/repl/repl.go +++ b/cmd/ethereum/repl/repl.go @@ -86,6 +86,11 @@ func (self *JSRepl) Stop() { } func (self *JSRepl) parseInput(code string) { + defer func() { + if r := recover(); r != nil { + fmt.Println("[native] error", r) + } + }() value, err := self.re.Run(code) if err != nil {