chore: enhance logs when panic. (#221)
This commit is contained in:
committed by
Marc Vertes
parent
f5353e55c8
commit
146cac6a0f
@@ -103,6 +103,7 @@ func runCfg(n *Node, f *Frame) {
|
||||
val[0].Call(val[1:])
|
||||
}
|
||||
if f.recovered != nil {
|
||||
fmt.Println(n.cfgError("panic"))
|
||||
panic(f.recovered)
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user