]> git.notmuchmail.org Git - notmuch/blobdiff - lib/query.cc
When a search query triggers a Xapian exception, log what the query was.
[notmuch] / lib / query.cc
index 75f22b30f145b7ad148c7d77a9d925e215a37b83..ea521dd822faac03719be787d4bd82f708ca2f77 100644 (file)
@@ -151,6 +151,7 @@ notmuch_query_search_messages (notmuch_query_t *query,
     } catch (const Xapian::Error &error) {
        fprintf (stderr, "A Xapian exception occurred: %s\n",
                 error.get_msg().c_str());
+       fprintf (stderr, "Query string was: %s\n", query->query_string);
     }
 
     return _notmuch_messages_create (message_list);