]> git.notmuchmail.org Git - notmuch/blobdiff - lib/query.cc
Catch and optionally print about exception at database->flush.
[notmuch] / lib / query.cc
index 4a686832dc4343e62a0c3e13fb2a244ccf45ae7f..86167352381e5ed22dd3177e1ce32d98c2b2559d 100644 (file)
@@ -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);