mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Display backtraces for logged errors
This commit is contained in:
parent
6876a6edd7
commit
9c893fba9e
8 changed files with 16 additions and 16 deletions
|
|
@ -96,7 +96,7 @@ impl LibraryManager {
|
|||
match dialog.select_folder_future(Some(window)).await {
|
||||
Err(err) => {
|
||||
if !err.matches(gtk::DialogError::Dismissed) {
|
||||
log::error!("Folder selection failed: {err}");
|
||||
log::error!("Folder selection failed: {err:?}");
|
||||
}
|
||||
}
|
||||
Ok(folder) => window.set_library_folder(&folder),
|
||||
|
|
@ -120,7 +120,7 @@ impl LibraryManager {
|
|||
match dialog.open_future(Some(window)).await {
|
||||
Err(err) => {
|
||||
if !err.matches(gtk::DialogError::Dismissed) {
|
||||
log::error!("File selection failed: {err}");
|
||||
log::error!("File selection failed: {err:?}");
|
||||
}
|
||||
}
|
||||
Ok(path) => {
|
||||
|
|
@ -154,7 +154,7 @@ impl LibraryManager {
|
|||
|
||||
self.add_process(&process);
|
||||
}
|
||||
Err(err) => log::error!("Failed to import library: {err}"),
|
||||
Err(err) => log::error!("Failed to import library: {err:?}"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -178,7 +178,7 @@ impl LibraryManager {
|
|||
match dialog.save_future(Some(window)).await {
|
||||
Err(err) => {
|
||||
if !err.matches(gtk::DialogError::Dismissed) {
|
||||
log::error!("File selection failed: {err}");
|
||||
log::error!("File selection failed: {err:?}");
|
||||
}
|
||||
}
|
||||
Ok(path) => {
|
||||
|
|
@ -204,7 +204,7 @@ impl LibraryManager {
|
|||
|
||||
self.add_process(&process);
|
||||
}
|
||||
Err(err) => log::error!("Failed to export library: {err}"),
|
||||
Err(err) => log::error!("Failed to export library: {err:?}"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue