mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-23 01:44:52 +01:00
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.
This commit is contained in:
parent
6eaadb43ad
commit
e404d8a51d
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue