X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fmessage.cc;fp=lib%2Fmessage.cc;h=0551a4279cab3b5ebcaaff1de638033d502e2c43;hb=9201c502047816f2a22346fb02c971c50e5a7fcf;hp=3ca7b902ef304e609e511ef3ce9fcb86c6338fb9;hpb=cca551a7366bfe29e5c97cea53c2d50fbffc27dd;p=notmuch 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; } }