cli: let the user know which protocol is unknown or unsupported

The current error message is not helpful.
This commit is contained in:
Jani Nikula 2015-12-14 09:38:52 -04:00 committed by David Bremner
parent cb494f72f3
commit 190f69169d

View file

@ -81,7 +81,8 @@ notmuch_crypto_get_context (notmuch_crypto_t *crypto, const char *protocol)
return protocols[i].get_context (crypto); 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; return NULL;
} }