X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fmessage.cc;h=017c47b200cb81a6cca408134752c1d5d079f2dd;hp=4a5fae1e5901f584bdddcdd52bb9563aea585d5d;hb=e2341cbc09b503f996fd46b68f9d96ae6004025b;hpb=717279fbcf7e057957c7c6726cd4930393cd5fdf diff --git a/lib/message.cc b/lib/message.cc index 4a5fae1e..017c47b2 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -201,6 +201,7 @@ _notmuch_message_create_for_message_id (notmuch_database_t *notmuch, } catch (const Xapian::Error &error) { fprintf (stderr, "A Xapian exception occurred creating message: %s\n", error.get_msg().c_str()); + notmuch->exception_reported = TRUE; *status_ret = NOTMUCH_PRIVATE_STATUS_XAPIAN_EXCEPTION; return NULL; }