[gnome-builder] gui: log reason for show_uri failure



commit 3b14d54afec638396dcf98795abcd2e193cbeb2e
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jun 26 11:04:07 2019 -0700

    gui: log reason for show_uri failure

 src/libide/gui/ide-application-actions.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/gui/ide-application-actions.c b/src/libide/gui/ide-application-actions.c
index 85148b0e8..b0947cb27 100644
--- a/src/libide/gui/ide-application-actions.c
+++ b/src/libide/gui/ide-application-actions.c
@@ -183,9 +183,13 @@ ide_application_actions_help_cb (GObject      *object,
    */
   if (g_network_monitor_can_reach_finish (monitor, result, NULL))
     {
+      g_autoptr(GError) error = NULL;
+
       g_debug ("Can reach documentation site, opening online");
-      if (ide_gtk_show_uri_on_window (focused_window, DOCS_URI, g_get_monotonic_time (), NULL))
-        IDE_EXIT;
+      if (!ide_gtk_show_uri_on_window (focused_window, DOCS_URI, g_get_monotonic_time (), &error))
+        g_warning ("Failed to display documentation: %s", error->message);
+
+      IDE_EXIT;
     }
 
   g_debug ("Cannot reach online documentation, trying locally");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]