]> git.notmuchmail.org Git - notmuch/blobdiff - lib/message.cc
lib/message: use LOG_XAPIAN_EXCEPTION in n_m_get_header
[notmuch] / lib / message.cc
index 3ca7b902ef304e609e511ef3ce9fcb86c6338fb9..0551a4279cab3b5ebcaaff1de638033d502e2c43 100644 (file)
@@ -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;
        }
     }