From: Carl Worth Date: Sun, 22 Nov 2009 02:52:55 +0000 (+0100) Subject: Add a missing print after catching an exception. X-Git-Tag: 0.1~376 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=717279fbcf7e057957c7c6726cd4930393cd5fdf Add a missing print after catching an exception. Without this, trying to debug this exception was *really* confusing. --- diff --git a/lib/message.cc b/lib/message.cc index 069cedb2..4a5fae1e 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -199,6 +199,8 @@ _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()); *status_ret = NOTMUCH_PRIVATE_STATUS_XAPIAN_EXCEPTION; return NULL; }