aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-02-27 10:58:58 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-02-27 10:58:58 +0000
commit4359a9d039155a9551a41193bc53540b8c2506c9 (patch)
tree1148f48b53528c73515880dc0b86c11405dfc15a /src
parentbb4bb77908d8ccd80260aee4541e45d0a075b0ad (diff)
parent3ce3c805e0db96ef61790ea6e74b6bde28f8c9e2 (diff)
downloadayatana-indicator-datetime-4359a9d039155a9551a41193bc53540b8c2506c9.tar.gz
ayatana-indicator-datetime-4359a9d039155a9551a41193bc53540b8c2506c9.tar.bz2
ayatana-indicator-datetime-4359a9d039155a9551a41193bc53540b8c2506c9.zip
Don't log E_CLIENT_ERROR_NOT_SUPPORTED errors returned by e_cal_client_get_attachment_uris() -- we can silently interpret that as 'no attachments' Fixes: 1285212
Diffstat (limited to 'src')
-rw-r--r--src/planner-eds.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/planner-eds.cpp b/src/planner-eds.cpp
index da406eb..241e97f 100644
--- a/src/planner-eds.cpp
+++ b/src/planner-eds.cpp
@@ -516,8 +516,11 @@ private:
e_cal_client_get_attachment_uris_finish(E_CAL_CLIENT(client), res, &uris, &error);
if (error != nullptr)
{
- if (!g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ if (!g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CANCELLED) &&
+ !g_error_matches(error, E_CLIENT_ERROR, E_CLIENT_ERROR_NOT_SUPPORTED))
+ {
g_warning("Error getting appointment uris: %s", error->message);
+ }
g_error_free(error);
}