diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-16 21:51:38 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-16 21:51:38 +0800 |
commit | acc8f7fadcf7fcb382a84c65c488e615edcfeb36 (patch) | |
tree | 351ab223e5c3d6f0b59d0fc76ee022f5148341e6 /cmd | |
parent | d5d9746ca3b6a4f6f8494cf8d6b89d86a89620c8 (diff) | |
download | go-tangerine-acc8f7fadcf7fcb382a84c65c488e615edcfeb36.tar.gz go-tangerine-acc8f7fadcf7fcb382a84c65c488e615edcfeb36.tar.zst go-tangerine-acc8f7fadcf7fcb382a84c65c488e615edcfeb36.zip |
Add defer rescued back in
Diffstat (limited to 'cmd')
-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 { |