diff options
author | David Bremner <david@tethera.net> | 2021-05-23 21:08:29 -0300 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2021-06-05 15:41:28 -0300 |
commit | 651a1b085be106aa9761c464429d88e34157fc2a (patch) | |
tree | d6c473ec3106eee0ff501604103ce43417f6f152 /lib | |
parent | b0a11dbc3822271e948f625ca326e86ff68f2e57 (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/message.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/message.cc b/lib/message.cc index 560f2746..63b216b6 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -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; |