projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
591f901
)
Add a missing print after catching an exception.
author
Carl Worth
<cworth@cworth.org>
Sun, 22 Nov 2009 02:52:55 +0000
(
03:52
+0100)
committer
Carl Worth
<cworth@cworth.org>
Sun, 22 Nov 2009 02:52:55 +0000
(
03:52
+0100)
Without this, trying to debug this exception was *really* confusing.
lib/message.cc
patch
|
blob
|
history
diff --git
a/lib/message.cc
b/lib/message.cc
index 069cedb29bb6183459461cb47e8c588d4be72500..4a5fae1e5901f584bdddcdd52bb9563aea585d5d 100644
(file)
--- 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;
}