[gnome-builder] langserv: only log if not cancelled



commit e30815b43b4419390081f4bbef54828f558b6ee8
Author: Christian Hergert <chergert redhat com>
Date:   Sat Jan 13 19:14:13 2018 -0800

    langserv: only log if not cancelled

 src/libide/langserv/ide-langserv-highlighter.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/langserv/ide-langserv-highlighter.c b/src/libide/langserv/ide-langserv-highlighter.c
index ca34ca890..2176bf376 100644
--- a/src/libide/langserv/ide-langserv-highlighter.c
+++ b/src/libide/langserv/ide-langserv-highlighter.c
@@ -112,7 +112,8 @@ ide_langserv_highlighter_document_symbol_cb (GObject      *object,
 
   if (!ide_langserv_client_call_finish (client, result, &return_value, &error))
     {
-      g_message ("%s", error->message);
+      if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+        g_debug ("%s", error->message);
       IDE_EXIT;
     }
 


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