Skip to content

Commit adbc338

Browse files
committed
Log error on function call for the moment
1 parent 98bb655 commit adbc338

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

py/function.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ func (f *Function) Call(self Object, args Tuple) Object {
103103
}
104104
fmt.Printf("locals = %v\n", locals)
105105
// FIXME return?
106-
VmRun(f.Globals, locals, f.Code)
106+
err := VmRun(f.Globals, locals, f.Code)
107+
if err != nil {
108+
fmt.Printf("Error: %s\n", err)
109+
}
107110
return None
108111
}
109112

0 commit comments

Comments
 (0)