[gnome-builder] langserv-completion: only message when not cancelled



commit 593706d66ada2dc33a4fdebcdfe1bda1c0915621
Author: Christian Hergert <chergert redhat com>
Date:   Sun Oct 30 15:02:56 2016 -0700

    langserv-completion: only message when not cancelled

 libide/langserv/ide-langserv-completion-provider.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libide/langserv/ide-langserv-completion-provider.c 
b/libide/langserv/ide-langserv-completion-provider.c
index 42865a0..3fa5ac7 100644
--- a/libide/langserv/ide-langserv-completion-provider.c
+++ b/libide/langserv/ide-langserv-completion-provider.c
@@ -240,7 +240,8 @@ ide_langserv_completion_provider_complete_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_message ("%s", error->message);
       IDE_GOTO (failure);
     }
 


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