From: David Bremner Date: Mon, 14 Dec 2015 13:38:52 +0000 (+2000) Subject: [Patch v3 3/8] cli: let the user know which protocol is unknown or unsupported X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c43766fcfe49825b98322bd3655ebb79fe34c82a;p=notmuch-archives.git [Patch v3 3/8] cli: let the user know which protocol is unknown or unsupported --- diff --git a/92/8ca2290881765d5b4ac49695c9d6e7ee1b9c26 b/92/8ca2290881765d5b4ac49695c9d6e7ee1b9c26 new file mode 100644 index 000000000..2c91e6762 --- /dev/null +++ b/92/8ca2290881765d5b4ac49695c9d6e7ee1b9c26 @@ -0,0 +1,71 @@ +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 EDEAE6DE0A94 + for ; Mon, 14 Dec 2015 05:39:12 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.313 +X-Spam-Level: +X-Spam-Status: No, score=-0.313 tagged_above=-999 required=5 tests=[AWL=0.238, + 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 3dpSfBSUGSnV for ; + Mon, 14 Dec 2015 05:39:11 -0800 (PST) +Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) + by arlo.cworth.org (Postfix) with ESMTPS id 29EF26DE09ED + for ; Mon, 14 Dec 2015 05:39:10 -0800 (PST) +Received: from remotemail by fethera.tethera.net with local (Exim 4.84) + (envelope-from ) + id 1a8TLE-0008ES-CU; Mon, 14 Dec 2015 08:39:04 -0500 +Received: (nullmailer pid 31798 invoked by uid 1000); + Mon, 14 Dec 2015 13:39:05 -0000 +From: David Bremner +To: notmuch@notmuchmail.org +Subject: [Patch v3 3/8] cli: let the user know which protocol is unknown or + unsupported +Date: Mon, 14 Dec 2015 09:38:52 -0400 +Message-Id: <1450100337-31655-4-git-send-email-david@tethera.net> +X-Mailer: git-send-email 2.6.2 +In-Reply-To: <1450100337-31655-1-git-send-email-david@tethera.net> +References: <1450100337-31655-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: Mon, 14 Dec 2015 13:39:13 -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 +