From e2341cbc09b503f996fd46b68f9d96ae6004025b Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sun, 22 Nov 2009 03:54:20 +0100 Subject: 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. --- lib/query.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/query.cc') 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); -- cgit v1.2.3