unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] lib: document n_o_w_config can return NOTMUCH_STATUS_NO_CONFIG
@ 2021-10-21 14:42 David Bremner
  2021-10-30 18:02 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: David Bremner @ 2021-10-21 14:42 UTC (permalink / raw)
  To: notmuch, reply+AAANX2IQCBF766VNFFVYGC57PVNY3EVBNHHD3BUDCM; +Cc: David Bremner

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] lib: document n_o_w_config can return NOTMUCH_STATUS_NO_CONFIG
  2021-10-21 14:42 [PATCH] lib: document n_o_w_config can return NOTMUCH_STATUS_NO_CONFIG David Bremner
@ 2021-10-30 18:02 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2021-10-30 18:02 UTC (permalink / raw)
  To: notmuch, reply+AAANX2IQCBF766VNFFVYGC57PVNY3EVBNHHD3BUDCM

David Bremner <david@tethera.net> writes:

> This should be treated as fatal by callers, since we didn't succeed in
> opening a Xapian database.

patch applied (with an extra *, thanks to check-notmuch-commit) to
release and master.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-30 18:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-21 14:42 [PATCH] lib: document n_o_w_config can return NOTMUCH_STATUS_NO_CONFIG David Bremner
2021-10-30 18:02 ` David Bremner

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).