#dialog #error #expect #box #pop #up #message

dialog-expect

Display a dialog box with the message when calling .expect or panicing

5 stable releases

1.0.4 May 22, 2023
1.0.3 May 18, 2023
1.0.2 Apr 27, 2023

#17 in #pop

MIT license

4KB

dialog-expect

A crate providing a method to pop up a dialog box on .expect. See docs.rs for documentation. Supports macOS, Windows, and Linux via Qt5 & GTK.


lib.rs:

This crate provides a trait DialogExpect, with a function that unwraps Option<T> and [Result<T, E>] or shows a dialog box and panics. There is also an alternative to the panic!() macro that is the same thing, but it shows a dialog box first.

Dependencies

~0.6–9.5MB
~106K SLoC