Set console error panic hook #17
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
During project setup, I misunderstood this suggestion for how to use the
console_error_panic_hook
crate. I created a "console_error_panic_hook" feature flag, but I never used it to conditionally compile the code that actually sets the panic hook, which is done here in the example I was following. Many thanks to Luke Chu for catching this!We can set the panic hook by adding the lines
at the beginning of
main
.