mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-02-18 07:54:38 +01:00
lib/message: use LOG_XAPIAN_EXCEPTION in n_m_get_header
This is just for consistency, and a small reduction in the amount of boilerplate.
This commit is contained in:
parent
cca551a736
commit
9201c50204
1 changed files with 1 additions and 3 deletions
|
@ -572,9 +572,7 @@ notmuch_message_get_header (notmuch_message_t *message, const char *header)
|
||||||
return talloc_strdup (message, value.c_str ());
|
return talloc_strdup (message, value.c_str ());
|
||||||
|
|
||||||
} catch (Xapian::Error &error) {
|
} catch (Xapian::Error &error) {
|
||||||
_notmuch_database_log (notmuch_message_get_database (message), "A Xapian exception occurred when reading header: %s\n",
|
LOG_XAPIAN_EXCEPTION (message, error);
|
||||||
error.get_msg ().c_str ());
|
|
||||||
message->notmuch->exception_reported = true;
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue