[gnome-builder] diagnostics: ignore cancelled and not-supported errors
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] diagnostics: ignore cancelled and not-supported errors
- Date: Sat, 13 Jan 2018 01:20:58 +0000 (UTC)
commit 72321432030bad2c3e13aaa924b2a94a6be9e739
Author: Christian Hergert <chergert redhat com>
Date: Fri Jan 12 17:20:16 2018 -0800
diagnostics: ignore cancelled and not-supported errors
src/libide/diagnostics/ide-diagnostics-manager.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/diagnostics/ide-diagnostics-manager.c
b/src/libide/diagnostics/ide-diagnostics-manager.c
index 22577c749..d4ab41cb1 100644
--- a/src/libide/diagnostics/ide-diagnostics-manager.c
+++ b/src/libide/diagnostics/ide-diagnostics-manager.c
@@ -317,7 +317,9 @@ ide_diagnostics_group_diagnose_cb (GObject *object,
diagnostics = ide_diagnostic_provider_diagnose_finish (provider, result, &error);
- if (error != NULL)
+ if (error != NULL &&
+ !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);
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]