X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fquery.cc;h=4a686832dc4343e62a0c3e13fb2a244ccf45ae7f;hp=75f22b30f145b7ad148c7d77a9d925e215a37b83;hb=591f901241623fbc50b67dbcff88c68cb33c53fd;hpb=e5da2b701fc172d2255f205414f18c40f4343fbb diff --git a/lib/query.cc b/lib/query.cc index 75f22b30..4a686832 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -149,8 +149,9 @@ 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); } return _notmuch_messages_create (message_list);