[gnome-builder] code-index: Ignore cancellation errors



commit ec34d079799488fd7f7882a7c562d727c3e42ba8
Author: vanadiae <vanadiae35 gmail com>
Date:   Mon Jun 28 18:28:03 2021 +0200

    code-index: Ignore cancellation errors
    
    As they are not useful to know there and they spam the logs due to
    the cancellation done in the previous commit.

 src/plugins/code-index/ide-code-index-index.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/code-index/ide-code-index-index.c b/src/plugins/code-index/ide-code-index-index.c
index 86357d5fb..cb7fe90b5 100644
--- a/src/plugins/code-index/ide-code-index-index.c
+++ b/src/plugins/code-index/ide-code-index-index.c
@@ -389,7 +389,7 @@ ide_code_index_index_query_cb (GObject      *object,
           dzl_heap_insert_val (data->fuzzy_matches, fuzzy_match);
         }
     }
-  else
+  else if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
     {
       g_message ("%s", error->message);
     }


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