]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-show.c
cli: tell how many messages were precisely matched when expected 1 match
[notmuch] / notmuch-show.c
index 87e52bbc0e81a7f8b0c4c7ca5c374cfdbb5da068..3d5033d644b36e3950955e2b30d9703e6ca8267b 100644 (file)
@@ -904,7 +904,7 @@ do_show_single (void *ctx,
        return 1;
 
     if (count != 1) {
-       fprintf (stderr, "Error: search term did not match precisely one message.\n");
+       fprintf (stderr, "Error: search term did not match precisely one message (matched %d messages).\n", count);
        return 1;
     }