[nautilus] mime-actions: print error in a g_warning() when not in a dialog
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] mime-actions: print error in a g_warning() when not in a dialog
- Date: Mon, 16 Nov 2015 22:00:48 +0000 (UTC)
commit 6692efdc665da669a0c5671b61e505c509946ddd
Author: Cosimo Cecchi <cosimo endlessm com>
Date: Mon Nov 16 13:52:26 2015 -0800
mime-actions: print error in a g_warning() when not in a dialog
Make sure we don't eat errors without at least printing them on the
terminal.
src/nautilus-mime-actions.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c
index 9237cd5..9083181 100644
--- a/src/nautilus-mime-actions.c
+++ b/src/nautilus-mime-actions.c
@@ -1071,7 +1071,10 @@ search_for_application_dbus_call_notify_cb (GDBusProxy *proxy,
eel_show_error_dialog (_("Unable to search for application"), message,
parameters_install->parent_window);
g_free (message);
- }
+ } else {
+ g_warning ("Error while trying to search for applications: %s",
+ error->message);
+ }
g_error_free (error);
activate_parameters_install_free (parameters_install);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]