[gnome-builder] code-assist: don't warn in common service unknown case



commit b13114aa24e0daf4a26a61984b8f08dfd7c3e843
Author: Christian Hergert <christian hergert me>
Date:   Thu Dec 25 00:20:47 2014 -0800

    code-assist: don't warn in common service unknown case

 src/code-assistant/gb-source-code-assistant.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/code-assistant/gb-source-code-assistant.c b/src/code-assistant/gb-source-code-assistant.c
index 432f3e8..c9dee17 100644
--- a/src/code-assistant/gb-source-code-assistant.c
+++ b/src/code-assistant/gb-source-code-assistant.c
@@ -319,7 +319,9 @@ gb_source_code_assistant_parse_cb (GObject      *source_object,
     {
       if (g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN))
         priv->service_unknown = 1;
-      g_warning ("%s", error->message);
+      else
+        g_warning ("%s", error->message);
+
       GOTO (failure);
     }
 


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