aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2015-12-14 09:38:52 -0400
committerDavid Bremner <david@tethera.net>2015-12-30 11:28:30 -0400
commit190f69169dc5c2ee12dcf077ead7f3fac4d9d88b (patch)
tree5e2e74da2d17eacedab278bc8127104fbf5ec3df
parentcb494f72f398bb0898030a1225f9ef6da557e959 (diff)
cli: let the user know which protocol is unknown or unsupported
The current error message is not helpful.
-rw-r--r--crypto.c3
1 files changed, 2 insertions, 1 deletions
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;
}