handle setup errors more gracefully

This commit is contained in:
jfmonty2 committed 2023-09-13 11:06:40 -07:00
1 parent 1d9132de3b
commit 997e8b419f
3 files changed
+17 -5

No files matched your search

+1 -1
View File
@@ -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();