X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fquery.cc;h=86167352381e5ed22dd3177e1ce32d98c2b2559d;hb=5aea0dcb61368b416b2243e7cdf3bab8d919b696;hp=ea521dd822faac03719be787d4bd82f708ca2f77;hpb=59c241ebd0e05abb38e1feb510116b4b97b2baa6;p=notmuch diff --git a/lib/query.cc b/lib/query.cc index ea521dd8..86167352 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -149,9 +149,10 @@ notmuch_query_search_messages (notmuch_query_t *query, } } catch (const Xapian::Error &error) { - fprintf (stderr, "A Xapian exception occurred: %s\n", + 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);