From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8GdcBXgRbWCIHwEAgWs5BA (envelope-from ) for ; Wed, 07 Apr 2021 03:57:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QJ/WOncRbWDQRQAAB5/wlQ (envelope-from ) for ; Wed, 07 Apr 2021 01:57:11 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 49F9C1475C for ; Wed, 7 Apr 2021 03:57:11 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id E4B982908C; Tue, 6 Apr 2021 21:56:17 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id BEFF52904C for ; Tue, 6 Apr 2021 21:55:50 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id B65A55FA96; Tue, 6 Apr 2021 21:55:50 -0400 (EDT) Received: (nullmailer pid 2964206 invoked by uid 1000); Wed, 07 Apr 2021 01:55:35 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 02/28] lib: add missing status strings Date: Tue, 6 Apr 2021 22:55:04 -0300 Message-Id: <20210407015530.2964017-3-david@tethera.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210407015530.2964017-1-david@tethera.net> References: <20210407015530.2964017-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 6FB4Y774OCV3LWC3TI2SZOGN3QMPT643 X-Message-ID-Hash: 6FB4Y774OCV3LWC3TI2SZOGN3QMPT643 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=1617760631; 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=9gUXmCrgaeiMeKhx9Ofn0aoSfk8ryUpqhZd1Xx7/39M=; b=CS97O0aaaiuyc9LyQbfYwgbtaDhE9WfVgz3CEidQ/+3XUxCDfLPsSXotkp1PgzJ7in3ujd wNJy5yEyXmwZaIlIx3zK0zlN8bgJ1VdDBGpedKoMby6XkTXallzeCoh5BhuAo13D9kZD6c QWzvDARmwai87VPOKJeAvihUre4NK2Qv5dGyf9d0F3D+jNLuRUycJsSep1DgXwVXYDQCho krcfY0U3yVgR5Az+xepht9+H+8hfYv+6sYuvzSKvVsn/wDU4iy9nWsflzB02T935yREVh4 FOy22deGbVzxxChHAIItiHX1UkhwH74r8Zzw8izSjcyufrt85cOAqfFxZS8k7A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617760631; a=rsa-sha256; cv=none; b=dHwJ5mStJBDVFGN33w9z1G/rFdwBajCEasmW8pv59I8PRNP7DKR96MNHF4l8Nv4sscxP03 LvtSySoTdH7BrHSq1ns5INrj3OcNrLDycCCPSJT/Xo4TkgIDmfjNdTeh5DzPrlKVZS2ia6 CHZF45UEV6iR+vz0gQmrPVlfp6stJCKvIpsWz7QJhp8UsJciC89PY9E8eu3V5jKgr7Es0c GXcic9HZPJUkFpSJUaMuMwZE9A1jgCI2OzxkLpCA1m74NJvhnoCicC5po86T1hSgJd6u0M xIzZO4JaKIU6ZcNwRONNpq0Fzkh4FeqE9CQBqUrdwYUBdYsAghN21IdeT1rnTg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.88 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 49F9C1475C X-Spam-Score: -0.88 X-Migadu-Scanner: scn0.migadu.com X-TUID: KCsFmKUz7Q9K --- lib/database.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/database.cc b/lib/database.cc index 9743c1ca..d2ccdd58 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -293,12 +293,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.2