Recover from panics in RunApplication() #2
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?
Nasin depends on objects. It would be cool to, instead of crash to stderr or whatever go normally does, throw up an error dialog explaining the error when something panics within RunApplication. This would indicate to the user that something has gone wrong with the application instead of just abruptly closing it. When the user presses OK to close the application, we can re-panic to still have the normal behavior.
On second thought, this would not work at all.
Because application code is either run in callbacks (executed in the backend's event loop), or in a separate goroutine, nasin would have to re-initialize the backend to recover from the application panic (when the panic can even be recovered from).
If there is ever a desktop environment built with Tomo, this feature could be implemented as a wrapper program that watches for program crashes and stack traces and displays them to the user once they happen.