X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fmessage.cc;h=017c47b200cb81a6cca408134752c1d5d079f2dd;hb=5d56e931b99d575dbb0b936d24aae5e9903861ad;hp=069cedb29bb6183459461cb47e8c588d4be72500;hpb=637f99d8f3f45867d0a856503f9f302333824c07;p=notmuch diff --git a/lib/message.cc b/lib/message.cc index 069cedb2..017c47b2 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -199,6 +199,9 @@ _notmuch_message_create_for_message_id (notmuch_database_t *notmuch, doc_id = db->add_document (doc); } 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; }