[PATCH 3/8] cli: let the user know which protocol is unknown or unsupported

Subject: [PATCH 3/8] cli: let the user know which protocol is unknown or unsupported

Date: Sun, 16 Aug 2015 19:41:11 +0200

To: notmuch@notmuchmail.org

Cc:

From: David Bremner


From: Jani Nikula <jani@nikula.org>

The current error message is not helpful.
---
 crypto.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/crypto.c b/crypto.c
index f415abd..11c167e 100644
--- a/crypto.c
+++ b/crypto.c
@@ -67,7 +67,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;
 }
-- 
2.5.0


Thread: