Create safe function

with_captured_calls(z)

Arguments

z

the function whose errors we want to track

Value

a function