Support recover()
for tracing source of a panic
#1443
Labels
intermediate
A task requiring an intermediate level of knowledge
recover()
for tracing source of a panic
#1443
We recently encountered a
panic
in go-runtime/compile/schema.go (fix) triggered by the PFI code, but we were not able to easily identify exactly what line in PFI caused the panic. Alec suggested "we should have arecover()
in the code that tracks the current node being parsed so we can report where the panic occurs. Something like defer catch(node)"The text was updated successfully, but these errors were encountered: