mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
lib/message: use passed database for error handling
'message' should always be initialized if we reach here, but in case it is not, we still want to be able to log an error message.
This commit is contained in:
parent
b0a11dbc38
commit
651a1b085b
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ _notmuch_message_create_for_message_id (notmuch_database_t *notmuch,
|
|||
|
||||
doc_id = _notmuch_database_generate_doc_id (notmuch);
|
||||
} catch (const Xapian::Error &error) {
|
||||
_notmuch_database_log (notmuch_message_get_database (message),
|
||||
_notmuch_database_log (notmuch,
|
||||
"A Xapian exception occurred creating message: %s\n",
|
||||
error.get_msg ().c_str ());
|
||||
notmuch->exception_reported = true;
|
||||
|
|
Loading…
Reference in a new issue