aboutsummaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2022-05-25 07:51:16 -0300
committerDavid Bremner <david@tethera.net>2022-06-25 16:06:18 -0300
commit3f27cce71f9f154cb0c2134c32d41c31eb62a239 (patch)
tree885c88706efdd7a771944287e4c2c27cfe737e11 /bindings
parent7e654e2a456c552052e9e50b83da73b4d31d8f2b (diff)
lib: add NOTMUCH_STATUS_CLOSED_DATABASE, use in _n_d_ensure_writable
In order for a database to actually be writeable, it must be the case that it is open, not just the correct type of Xapian object. By explicitely checking, we are able to provide better error reporting, in particular for the previously broken test in T566-lib-message.
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python-cffi/notmuch2/_build.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bindings/python-cffi/notmuch2/_build.py b/bindings/python-cffi/notmuch2/_build.py
index 349bb79d..65d7dcb6 100644
--- a/bindings/python-cffi/notmuch2/_build.py
+++ b/bindings/python-cffi/notmuch2/_build.py
@@ -55,6 +55,7 @@ ffibuilder.cdef(
NOTMUCH_STATUS_DATABASE_EXISTS,
NOTMUCH_STATUS_BAD_QUERY_SYNTAX,
NOTMUCH_STATUS_NO_MAIL_ROOT,
+ NOTMUCH_STATUS_CLOSED_DATABASE,
NOTMUCH_STATUS_LAST_STATUS
} notmuch_status_t;
typedef enum {