X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=query.cc;h=88d76ef19ff6c2b825d81bbb256e218607c6f839;hp=f5ee7aadc5ee7185037fce302c805ba1592c1f86;hb=7b227a6bf7eb409b4353adc430b2545166e0c4cd;hpb=3b8e3ab666a54407f9596a53c66ba8ce623ac91d diff --git a/query.cc b/query.cc index f5ee7aad..88d76ef1 100644 --- a/query.cc +++ b/query.cc @@ -178,8 +178,7 @@ notmuch_results_get (notmuch_results_t *results) if (message == NULL && status == NOTMUCH_PRIVATE_STATUS_NO_DOCUMENT_FOUND) { - fprintf (stderr, "Internal error: a results iterator contains a non-existent document ID.\n"); - exit (1); + INTERNAL_ERROR ("a results iterator contains a non-existent document ID.\n"); } return message;