From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id B6DFB6DE1435 for ; Sun, 16 Aug 2015 10:43:48 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.125 X-Spam-Level: X-Spam-Status: No, score=0.125 tagged_above=-999 required=5 tests=[AWL=0.115, T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7a3wXU0dgHFN for ; Sun, 16 Aug 2015 10:43:47 -0700 (PDT) Received: from gitolite.debian.net (gitolite.debian.net [87.98.215.224]) by arlo.cworth.org (Postfix) with ESMTPS id D17696DE0B26 for ; Sun, 16 Aug 2015 10:43:46 -0700 (PDT) Received: from remotemail by gitolite.debian.net with local (Exim 4.80) (envelope-from ) id 1ZR1wl-0003cQ-3V; Sun, 16 Aug 2015 17:42:15 +0000 Received: (nullmailer pid 26311 invoked by uid 1000); Sun, 16 Aug 2015 17:41:28 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 3/8] cli: let the user know which protocol is unknown or unsupported Date: Sun, 16 Aug 2015 19:41:11 +0200 Message-Id: <1439746876-23654-4-git-send-email-david@tethera.net> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1439746876-23654-1-git-send-email-david@tethera.net> References: <54CA467B.30408@gnome.org> <1439746876-23654-1-git-send-email-david@tethera.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Aug 2015 17:43:48 -0000 From: Jani Nikula 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