diff options
| author | David Bremner <david@tethera.net> | 2020-07-04 08:33:41 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2020-07-13 07:19:22 -0300 |
| commit | 9201c502047816f2a22346fb02c971c50e5a7fcf (patch) | |
| tree | dc76d9383f94241d667ad2a7048eb5020b3a0dde /lib/message.cc | |
| parent | cca551a7366bfe29e5c97cea53c2d50fbffc27dd (diff) | |
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.
Diffstat (limited to 'lib/message.cc')
| -rw-r--r-- | lib/message.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/message.cc b/lib/message.cc index 3ca7b902..0551a427 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -572,9 +572,7 @@ notmuch_message_get_header (notmuch_message_t *message, const char *header) return talloc_strdup (message, value.c_str ()); } catch (Xapian::Error &error) { - _notmuch_database_log (notmuch_message_get_database (message), "A Xapian exception occurred when reading header: %s\n", - error.get_msg ().c_str ()); - message->notmuch->exception_reported = true; + LOG_XAPIAN_EXCEPTION (message, error); return NULL; } } |
