aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-02-26 10:09:35 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-02-26 10:09:35 -0600
commit3ce3c805e0db96ef61790ea6e74b6bde28f8c9e2 (patch)
tree1148f48b53528c73515880dc0b86c11405dfc15a
parentbb4bb77908d8ccd80260aee4541e45d0a075b0ad (diff)
downloadayatana-indicator-datetime-3ce3c805e0db96ef61790ea6e74b6bde28f8c9e2.tar.gz
ayatana-indicator-datetime-3ce3c805e0db96ef61790ea6e74b6bde28f8c9e2.tar.bz2
ayatana-indicator-datetime-3ce3c805e0db96ef61790ea6e74b6bde28f8c9e2.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'
-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);
}