From 717279fbcf7e057957c7c6726cd4930393cd5fdf Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sun, 22 Nov 2009 03:52:55 +0100 Subject: [PATCH] Add a missing print after catching an exception. Without this, trying to debug this exception was *really* confusing. --- lib/message.cc | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.26.2