[gnome-builder] search: only warn on non-common errors
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] search: only warn on non-common errors
- Date: Mon, 21 Jan 2019 21:19:13 +0000 (UTC)
commit 04ce66b2a5c0fddb7b8a1c166d5634d367fd7fcd
Author: Christian Hergert <chergert redhat com>
Date: Mon Jan 21 13:18:20 2019 -0800
search: only warn on non-common errors
src/libide/search/ide-search-engine.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/search/ide-search-engine.c b/src/libide/search/ide-search-engine.c
index 85e82d3f5..3e2246df4 100644
--- a/src/libide/search/ide-search-engine.c
+++ b/src/libide/search/ide-search-engine.c
@@ -238,7 +238,9 @@ ide_search_engine_search_cb (GObject *object,
if (error != NULL)
{
- g_warning ("%s", error->message);
+ if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) &&
+ !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
+ g_warning ("%s", error->message);
goto cleanup;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]