From: Jani Nikula Date: Mon, 14 Dec 2015 13:38:52 +0000 (-0400) Subject: cli: let the user know which protocol is unknown or unsupported X-Git-Tag: 0.22_rc0~90 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=190f69169dc5c2ee12dcf077ead7f3fac4d9d88b cli: let the user know which protocol is unknown or unsupported The current error message is not helpful. --- diff --git a/crypto.c b/crypto.c index da0289dc..feae9494 100644 --- 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; }