good morning!!!!

Skip to content
Snippets Groups Projects
Commit 51ecab69 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Do not set error on recover

parent 037039ca
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,8 @@ func (self *DebugVm) RunClosure(closure *Closure) (ret []byte, err error) { ...@@ -82,7 +82,8 @@ func (self *DebugVm) RunClosure(closure *Closure) (ret []byte, err error) {
self.Endl() self.Endl()
ret = closure.Return(nil) ret = closure.Return(nil)
err = fmt.Errorf("%v", r) // No error should be set. Recover is used with require
// Is this too error prone?
} }
}() }()
} }
...@@ -106,7 +107,7 @@ func (self *DebugVm) RunClosure(closure *Closure) (ret []byte, err error) { ...@@ -106,7 +107,7 @@ func (self *DebugVm) RunClosure(closure *Closure) (ret []byte, err error) {
step++ step++
// Get the memory location of pc // Get the memory location of pc
op := OpCode(closure.Get(pc).Uint()) op = OpCode(closure.Get(pc).Uint())
// XXX Leave this Println intact. Don't change this to the log system. // XXX Leave this Println intact. Don't change this to the log system.
// Used for creating diffs between implementations // Used for creating diffs between implementations
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment