Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id E670A6DE1B23 for ; Fri, 11 Dec 2015 05:55:19 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.321 X-Spam-Level: X-Spam-Status: No, score=-0.321 tagged_above=-999 required=5 tests=[AWL=0.230, RP_MATCHES_RCVD=-0.55, SPF_PASS=-0.001] 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 74ASIX04QX7p for ; Fri, 11 Dec 2015 05:55:18 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id E33E96DE18FE for ; Fri, 11 Dec 2015 05:55:02 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.84) (envelope-from ) id 1a7O9y-0000Sa-Jp; Fri, 11 Dec 2015 08:54:58 -0500 Received: (nullmailer pid 11206 invoked by uid 1000); Fri, 11 Dec 2015 13:54:52 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [Patch v2 3/8] cli: let the user know which protocol is unknown or unsupported Date: Fri, 11 Dec 2015 09:54:42 -0400 Message-Id: <1449842087-10972-4-git-send-email-david@tethera.net> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1449842087-10972-1-git-send-email-david@tethera.net> References: <1449842087-10972-1-git-send-email-david@tethera.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.20 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: Fri, 11 Dec 2015 13:55:20 -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 da0289d..feae949 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; } -- 2.6.2