[gnome-builder/wip/libide] libide: ignore not found error



commit 9676fa6d0cc132948f04d8c4c499294b5845b83a
Author: Christian Hergert <christian hergert me>
Date:   Sun Mar 1 22:57:35 2015 -0800

    libide: ignore not found error
    
    Pretty common error, so no need to spam the log with this.

 libide/clang/ide-clang-service.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libide/clang/ide-clang-service.c b/libide/clang/ide-clang-service.c
index fd98270..847dce2 100644
--- a/libide/clang/ide-clang-service.c
+++ b/libide/clang/ide-clang-service.c
@@ -186,7 +186,8 @@ ide_clang_service__get_build_flags_cb (GObject      *object,
 
   if (!argv)
     {
-      g_message ("%s", error->message);
+      if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
+        g_message ("%s", error->message);
       g_clear_error (&error);
       argv = g_new0 (gchar*, 1);
     }


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