handle setup errors more gracefully
This commit is contained in:
1 parent
1d9132de3b
commit
997e8b419f
3 files changed
+17
-5
No files matched your search
@@ -24,7 +24,7 @@ pub trait ErrorPopup {
|
||||
fn error_popup(self, title: &str);
|
||||
}
|
||||
|
||||
impl<E: Error> ErrorPopup for Result<(), E> {
|
||||
impl<E: std::fmt::Display> ErrorPopup for Result<(), E> {
|
||||
fn error_popup(self, title: &str) {
|
||||
if let Err(e) = self {
|
||||
let (tx, rx) = mpsc::channel();
|
||||
|
||||
Reference in new issue
Block a user