[sysprof] libsysprof-ui: dont warn for not-supported error
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] libsysprof-ui: dont warn for not-supported error
- Date: Wed, 26 Feb 2020 18:46:30 +0000 (UTC)
commit 0c698f2da16504bf3e15d29d7cb3afdcee5da3d9
Author: Christian Hergert <chergert redhat com>
Date: Wed Feb 26 10:46:08 2020 -0800
libsysprof-ui: dont warn for not-supported error
src/libsysprof-ui/sysprof-display.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/libsysprof-ui/sysprof-display.c b/src/libsysprof-ui/sysprof-display.c
index 5a5de3f..835e3ea 100644
--- a/src/libsysprof-ui/sysprof-display.c
+++ b/src/libsysprof-ui/sysprof-display.c
@@ -624,7 +624,10 @@ sysprof_display_present_cb (GObject *object,
g_assert (G_IS_TASK (task));
if (!sysprof_aid_present_finish (aid, result, &error))
- g_warning ("Failed to present aid %s: %s", G_OBJECT_TYPE_NAME (aid), error->message);
+ {
+ if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
+ g_warning ("Failed to present aid %s: %s", G_OBJECT_TYPE_NAME (aid), error->message);
+ }
n_active = g_task_get_task_data (task);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]