From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yPehMLDaQGC9cgAA0tVLHw (envelope-from ) for ; Thu, 04 Mar 2021 13:03:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id EOfSK7DaQGAKcQAAbx9fmQ (envelope-from ) for ; Thu, 04 Mar 2021 13:03:44 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4F83E221D2 for ; Thu, 4 Mar 2021 14:03:44 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 57CF227BC5; Thu, 4 Mar 2021 08:02:23 -0500 (EST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id DBDB726C3E for ; Thu, 4 Mar 2021 08:02:00 -0500 (EST) Received: by fethera.tethera.net (Postfix, from userid 1001) id C57795FA96; Thu, 4 Mar 2021 08:02:00 -0500 (EST) Received: (nullmailer pid 4047162 invoked by uid 1000); Thu, 04 Mar 2021 13:01:45 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 01/27] lib: add missing status strings Date: Thu, 4 Mar 2021 09:01:13 -0400 Message-Id: <20210304130139.4046183-2-david@tethera.net> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210304130139.4046183-1-david@tethera.net> References: <20210304130139.4046183-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: BM5UFVEGZPOVIX2O5RWEKO3DWQBRQPC3 X-Message-ID-Hash: BM5UFVEGZPOVIX2O5RWEKO3DWQBRQPC3 X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614863024; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=rtoqXrIjCpe+9oQG1vrsZ+nhBqrLl/UO472SOlC5SJY=; b=s06ubSWzXtJl6YVT+vxVAMjOoOgf1AtCBxJF/YfB2EPzURRsM2OA3uwvV+pwNmM+qFc5Ey ZCuq7rqkQDp7LY+4x4RjDFizHyxs8gEpnBVEMl57qo4j/XuHjyUKBHVlkzS/KExwEWnsjP tgUQGlJibyWLQC3bu69f2uQebzc2ZJqhjCkf8RCNxNS/IKHevwaP6DmfppRArOnbEO+y8F 9j6jHnRYRGuxQ+k54zCrvweOwu2+H2FGrwqnmFY+5tyLAl4X2Jh6FXOc3E2XrB8sLd5rN4 RT9SM8SlVoVE4lBVGaivreAq6Z7tI65GHt/I0f0cB/vG8iH/D6rWtQPtCilK4Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614863024; a=rsa-sha256; cv=none; b=L4veouhcaKcNA6EaPT4FPxUM3xLNh0MdSapwL8grtlo18rnBnNt73VRbQNUR+v2pkMxw78 BvimS1wFIAr5arPm00ipztHvrLC7kAGkPIiIk6EyAcrJRiaJxvg6shAwISqjCnVNXg+eY9 Fq9mkc39PaBdbxLGlB3eUOBf6EankCds1u6T4txhkv0g/79eCxKz8zFUcvLhJ+oyTfApwJ 6eTJCBnIShMt9HscR6Y2uX5jzhzUrUlU48oE/aWnFzZTOhY6wtfPExkQ67/7J/tpVJR4hF 93f1epcYdDBE6ghyk/OdN9wmf8OeFVXDPby9tJZ2BRRQfm4wFvALYjPin/EogQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.03 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 4F83E221D2 X-Spam-Score: -1.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6LDFKjRIZqlh --- lib/database.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/database.cc b/lib/database.cc index ffd42ac4..87ad1385 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -292,12 +292,20 @@ notmuch_status_to_string (notmuch_status_t status) return "Operation requires a database upgrade"; case NOTMUCH_STATUS_PATH_ERROR: return "Path supplied is illegal for this function"; + case NOTMUCH_STATUS_IGNORED: + return "Argument was ignored"; + case NOTMUCH_STATUS_ILLEGAL_ARGUMENT: + return "Illegal argument for function"; case NOTMUCH_STATUS_MALFORMED_CRYPTO_PROTOCOL: return "Crypto protocol missing, malformed, or unintelligible"; case NOTMUCH_STATUS_FAILED_CRYPTO_CONTEXT_CREATION: return "Crypto engine initialization failure"; case NOTMUCH_STATUS_UNKNOWN_CRYPTO_PROTOCOL: return "Unknown crypto protocol"; + case NOTMUCH_STATUS_NO_CONFIG: + return "No configuration file found"; + case NOTMUCH_STATUS_DATABASE_EXISTS: + return "Database exists, not recreated"; default: case NOTMUCH_STATUS_LAST_STATUS: return "Unknown error status value"; -- 2.30.1