ndreynolds / ratatouille

A TUI (terminal UI) kit for Elixir
MIT License
752 stars 39 forks source link

Ignore state which raises errors #26

Open achempion opened 4 years ago

achempion commented 4 years ago

I'm looking through the code and fund the loop cycle.

https://github.com/ndreynolds/ratatouille/blob/77bf3d642ead1526b147ddeed0a1d415ad71e368/lib/ratatouille/runtime.ex#L109

Right now on any Exception it'll abort the window. I think user wants to get a message that something is wrong but probably we could avoid aborting the whole application and loosing all state here via loading the previous "working" state back.

Or at least allow to configure custom handler for this event.