handle setup errors more gracefully

This commit is contained in:
2023-09-13 11:06:40 -07:00
parent 1d9132de3b
commit 997e8b419f
3 changed files with 17 additions and 5 deletions

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();