[gnome-builder/gnome-builder-3-20] build-tools: only log if error is not G_IO_ERROR_CANCELLED



commit d0de00b4efd3e6e89323f461b9d706cf71f1d2e6
Author: Christian Hergert <chergert redhat com>
Date:   Tue May 10 14:26:53 2016 +0300

    build-tools: only log if error is not G_IO_ERROR_CANCELLED

 plugins/build-tools/gbp-build-workbench-addin.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/build-tools/gbp-build-workbench-addin.c b/plugins/build-tools/gbp-build-workbench-addin.c
index 8194a10..d7f2d14 100644
--- a/plugins/build-tools/gbp-build-workbench-addin.c
+++ b/plugins/build-tools/gbp-build-workbench-addin.c
@@ -83,8 +83,8 @@ gbp_build_workbench_addin_build_cb (GObject      *object,
 
   build_result = ide_builder_build_finish (builder, result, &error);
 
-  if (error != NULL)
-    g_warning ("%s", error->message);
+  if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+    g_message ("%s", error->message);
 }
 
 static void


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