chore: display original error
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/314>
This commit is contained in:
parent
4e28ea1cf6
commit
8d185e1e10
1 changed files with 2 additions and 2 deletions
|
|
@ -308,8 +308,8 @@ impl LpImageView {
|
|||
if let Some(directory) = directory {
|
||||
spawn(glib::clone!(@weak self as obj, @strong file => async move {
|
||||
if let Err(err) = obj.model().load_directory(directory.clone()).await {
|
||||
log::warn!("Failed to load directory: {err}");
|
||||
obj.activate_action("win.show-toast", Some(&(err.to_string(), adw::ToastPriority::High.into_glib()).to_variant()))
|
||||
log::warn!("Failed to load directory: {}", err.root_cause());
|
||||
obj.activate_action("win.show-toast", Some(&(format!("{} {}", err, err.root_cause()), adw::ToastPriority::High.into_glib()).to_variant()))
|
||||
.unwrap();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue