From: David Bremner <david@tethera.net>
To: notmuch@notmuchmail.org,
reply+AAANX2IQCBF766VNFFVYGC57PVNY3EVBNHHD3BUDCM@reply.github.com
Cc: David Bremner <david@tethera.net>
Subject: [PATCH] lib: document n_o_w_config can return NOTMUCH_STATUS_NO_CONFIG
Date: Thu, 21 Oct 2021 11:42:36 -0300 [thread overview]
Message-ID: <20211021144236.722928-1-david@tethera.net> (raw)
This should be treated as fatal by callers, since we didn't succeed in
opening a Xapian database.
---
lib/notmuch.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/notmuch.h b/lib/notmuch.h
index 074fc682..8d4d14af 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -433,6 +433,8 @@ notmuch_database_open_verbose (const char *path,
* @retval NOTMUCH_STATUS_NULL_POINTER: The given \a database
* argument is NULL.
*
+ * @retval NOTMUCH_STATUS_NO_CONFIG: No config file was found. Fatal.
+
* @retval NOTMUCH_STATUS_OUT_OF_MEMORY: Out of memory.
*
* @retval NOTMUCH_STATUS_FILE_ERROR: An error occurred trying to open the
--
2.33.0
next reply other threads:[~2021-10-21 14:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-21 14:42 David Bremner [this message]
2021-10-30 18:02 ` [PATCH] lib: document n_o_w_config can return NOTMUCH_STATUS_NO_CONFIG David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211021144236.722928-1-david@tethera.net \
--to=david@tethera.net \
--cc=notmuch@notmuchmail.org \
--cc=reply+AAANX2IQCBF766VNFFVYGC57PVNY3EVBNHHD3BUDCM@reply.github.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).