Pretty-print error call to be informative for the user.
rethrow(error, call = sys.call(sys.parent()))rethrow_on_error(expr, call = sys.call(sys.parent()))
an object of class c("error", "condition")
to rethrow
the calling context to rethrow the error from, overwriting the error<U+2019>s current call object
an expression to evaluate inside tryCatch
If it does not throw an error, rethrow_on_error
returns the
value of evaluating expr
.