aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-16 21:51:38 +0800
committerobscuren <geffobscura@gmail.com>2015-01-16 21:51:38 +0800
commitacc8f7fadcf7fcb382a84c65c488e615edcfeb36 (patch)
tree351ab223e5c3d6f0b59d0fc76ee022f5148341e6
parentd5d9746ca3b6a4f6f8494cf8d6b89d86a89620c8 (diff)
downloadgo-tangerine-acc8f7fadcf7fcb382a84c65c488e615edcfeb36.tar
go-tangerine-acc8f7fadcf7fcb382a84c65c488e615edcfeb36.tar.gz
go-tangerine-acc8f7fadcf7fcb382a84c65c488e615edcfeb36.tar.bz2
go-tangerine-acc8f7fadcf7fcb382a84c65c488e615edcfeb36.tar.lz
go-tangerine-acc8f7fadcf7fcb382a84c65c488e615edcfeb36.tar.xz
go-tangerine-acc8f7fadcf7fcb382a84c65c488e615edcfeb36.tar.zst
go-tangerine-acc8f7fadcf7fcb382a84c65c488e615edcfeb36.zip
Add defer rescued back in
-rw-r--r--cmd/ethereum/repl/repl.go5
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 {