Commit 72321432 authored by Christian Hergert's avatar Christian Hergert
Browse files

diagnostics: ignore cancelled and not-supported errors

parent cb72e542
...@@ -317,7 +317,9 @@ ide_diagnostics_group_diagnose_cb (GObject *object, ...@@ -317,7 +317,9 @@ ide_diagnostics_group_diagnose_cb (GObject *object,
diagnostics = ide_diagnostic_provider_diagnose_finish (provider, result, &error); 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); g_warning ("%s", error->message);
/* /*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment