Closed glennmoy closed 1 year ago
I wonder if it's better to print a @debug
log message instead.
Either way, please wrap this all in another try-catch block in case the sprint
call fails for whatever reason. It's essential that this code doesn't throw.
I wonder if it's better to print a
@debug
log message instead.Either way, please wrap this all in another try-catch block in case the
sprint
call fails for whatever reason. It's essential that this code doesn't throw.
sure - let me know if you think it's a good idea to print a second error message in the catch
block... I figured it should say it tried to do display the original error without getting too self-referential.
Looks good, thanks!
The
caught
exception can useful for tracking down sources of bugs, as was the case for myself earlier today.