This video shows how Rust panic hooks can be used to display error dialogs instead of just printing to stderr, or worse, crashing a gui application.
Of course, this is not a replacement to proper error handling and input sanitization, however, some panics and asserts might slip by.
You can also create your own custom dialogs if fltk’s default dialogs don’t match your application’s overall ui.

#rust

FLTK Rust UX tip: Shift panics and errors to dialog boxes
1.80 GEEK