diff options
author | Carl Worth <cworth@cworth.org> | 2009-11-22 03:54:20 +0100 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-11-22 03:54:20 +0100 |
commit | e2341cbc09b503f996fd46b68f9d96ae6004025b (patch) | |
tree | 042bd073a0e34344025cf376453350793326599b /lib/query.cc | |
parent | 717279fbcf7e057957c7c6726cd4930393cd5fdf (diff) |
Catch and optionally print about exception at database->flush.
If an earlier exception occurred, then it's not unexpected for the
flush to fail as well. So in that case, we'll silently catch the
exception. Otherwise, make some noise about things going wrong at the
time of flush.
Diffstat (limited to 'lib/query.cc')
-rw-r--r-- | lib/query.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/query.cc b/lib/query.cc index 4a686832..86167352 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -152,6 +152,7 @@ notmuch_query_search_messages (notmuch_query_t *query, fprintf (stderr, "A Xapian exception occurred performing query: %s\n", error.get_msg().c_str()); fprintf (stderr, "Query string was: %s\n", query->query_string); + notmuch->exception_reported = TRUE; } return _notmuch_messages_create (message_list); |