Set console error panic hook #17
Labels
No labels
bug
duplicate
enhancement
prospective
question
todo
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: glen/dyna3#17
Loading…
Add table
Reference in a new issue
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
.Addressed in passing by pull request #29.