summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2010-03-30 19:49:43 +0100
committerCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2010-04-05 17:47:45 +0100
commit3ca694f5c67ef7901ebec8ba1172eb4fbabcf93f (patch)
tree3b85caaa1f72759c0359e5d526518712bdde5047
parentb0aa91cec8f0a1051bae5def372618726c57ab89 (diff)
TplLogStoreSqlite: set GError insead of printing a debug message
-rw-r--r--telepathy-logger/log-store-sqlite.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/telepathy-logger/log-store-sqlite.c b/telepathy-logger/log-store-sqlite.c
index 7e4e1f480..3c5f9fcf5 100644
--- a/telepathy-logger/log-store-sqlite.c
+++ b/telepathy-logger/log-store-sqlite.c
@@ -991,7 +991,10 @@ tpl_log_store_sqlite_set_acknowledgment_by_msg_id (TplLogStore *self,
tpl_log_store_sqlite_set_acknowledgment (self, log_id, error);
}
else
- DEBUG ("%s: pending id %d not found", get_channel_name (channel), msg_id);
+ g_set_error (error, TPL_LOG_STORE_ERROR,
+ TPL_LOG_STORE_ERROR_NOT_PRESENT,
+ "Unable to acknowledge pending message %d for channel %s: not found",
+ msg_id, get_channel_name (channel));
g_free (log_id);
}