aboutsummaryrefslogtreecommitdiff
path: root/lib/message-property.cc
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2025-08-06 07:43:06 +0200
committerDavid Bremner <david@tethera.net>2025-08-09 07:12:23 -0300
commitaa761727999b105711ba4ca789e0836a0a05cf9f (patch)
tree560091147ab6db4c6e1b0a6a34451f34963a7a03 /lib/message-property.cc
parentbee7a53194606757997f069f0e95ac862fbba0e0 (diff)
lib: return NOTMUCH_STATUS_OPERATION_INVALIDATED where appropriate
The overall goal is to allow clients to restart operations in situations where that is the response recommended by the underlying Xapian library. Amended-by: db, added above explanation
Diffstat (limited to 'lib/message-property.cc')
-rw-r--r--lib/message-property.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/message-property.cc b/lib/message-property.cc
index 7f520340..f876e5ef 100644
--- a/lib/message-property.cc
+++ b/lib/message-property.cc
@@ -104,7 +104,7 @@ _notmuch_message_modify_property (notmuch_message_t *message, const char *key, c
private_status = _notmuch_message_add_term (message, "property", term);
} catch (Xapian::Error &error) {
LOG_XAPIAN_EXCEPTION (message, error);
- return NOTMUCH_STATUS_XAPIAN_EXCEPTION;
+ return _notmuch_xapian_error ();
}
if (private_status)
@@ -153,7 +153,7 @@ _notmuch_message_remove_all_properties (notmuch_message_t *message, const char *
_notmuch_message_remove_terms (message, term_prefix);
} catch (Xapian::Error &error) {
LOG_XAPIAN_EXCEPTION (message, error);
- return NOTMUCH_STATUS_XAPIAN_EXCEPTION;
+ return _notmuch_xapian_error ();
}
if (! _notmuch_message_frozen (message))