Add a missing print after catching an exception.

Without this, trying to debug this exception was *really* confusing.
This commit is contained in:
Carl Worth 2009-11-22 03:52:55 +01:00
parent 591f901241
commit 717279fbcf

View file

@ -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;
}