]> git.notmuchmail.org Git - notmuch/commitdiff
cli: let the user know which protocol is unknown or unsupported
authorJani Nikula <jani@nikula.org>
Mon, 14 Dec 2015 13:38:52 +0000 (09:38 -0400)
committerDavid Bremner <david@tethera.net>
Wed, 30 Dec 2015 15:28:30 +0000 (11:28 -0400)
The current error message is not helpful.

crypto.c

index da0289dcf392db8b9277d0a9fa5dbca9bd3a2f86..feae9494714edebbe77a7c650bf33b50789de97b 100644 (file)
--- a/crypto.c
+++ b/crypto.c
@@ -81,7 +81,8 @@ notmuch_crypto_get_context (notmuch_crypto_t *crypto, const char *protocol)
            return protocols[i].get_context (crypto);
     }
 
-    fprintf (stderr, "Unknown or unsupported cryptographic protocol.\n");
+    fprintf (stderr, "Unknown or unsupported cryptographic protocol %s.\n",
+            protocol);
 
     return NULL;
 }