X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fquery.cc;h=86167352381e5ed22dd3177e1ce32d98c2b2559d;hp=75f22b30f145b7ad148c7d77a9d925e215a37b83;hb=e2341cbc09b503f996fd46b68f9d96ae6004025b;hpb=e5da2b701fc172d2255f205414f18c40f4343fbb diff --git a/lib/query.cc b/lib/query.cc index 75f22b30..86167352 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -149,8 +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);