diff options
-rw-r--r-- | cmd/ethereum/repl/repl.go | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |