aboutsummaryrefslogtreecommitdiff
path: root/lib/message.cc
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2020-07-05 10:00:17 -0300
committerDavid Bremner <david@tethera.net>2020-07-14 07:12:52 -0300
commite404d8a51d81a7dff85e28aeb64acdca5483652f (patch)
tree1b51b699716896750cd32e9bbc52b31e77755602 /lib/message.cc
parent6eaadb43adae2cca2f8023830d498ef3164f7fe9 (diff)
lib: use LOG_XAPIAN_EXCEPTION in n_m_get_date
This should not change functionality, but does slightly reduce code duplication. Perhaps more importantly it allows consistent changes to all of the similar exception handling in message.cc.
Diffstat (limited to 'lib/message.cc')
-rw-r--r--lib/message.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/message.cc b/lib/message.cc
index 8e43a393..f4306e2c 100644
--- a/lib/message.cc
+++ b/lib/message.cc
@@ -1191,9 +1191,7 @@ notmuch_message_get_date (notmuch_message_t *message)
try {
value = message->doc.get_value (NOTMUCH_VALUE_TIMESTAMP);
} catch (Xapian::Error &error) {
- _notmuch_database_log (notmuch_message_get_database (message), "A Xapian exception occurred when reading date: %s\n",
- error.get_msg ().c_str ());
- message->notmuch->exception_reported = true;
+ LOG_XAPIAN_EXCEPTION (message, error);
return 0;
}