diff options
author | Carl Worth <cworth@cworth.org> | 2009-11-22 03:52:55 +0100 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-11-22 03:52:55 +0100 |
commit | 717279fbcf7e057957c7c6726cd4930393cd5fdf (patch) | |
tree | 03b674c7fd699fcd8b60aadba4b7e781747b3004 /lib | |
parent | 591f901241623fbc50b67dbcff88c68cb33c53fd (diff) |
Add a missing print after catching an exception.
Without this, trying to debug this exception was *really* confusing.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/message.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |