diff options
| author | David Bremner <david@tethera.net> | 2022-12-03 22:28:57 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-12-27 11:59:46 -0400 |
| commit | 1d5d0ae68689e7b1d6b974e275f19371250c4b25 (patch) | |
| tree | 664ff033c279c517793e32b185b13bdcc9b5df95 /test/T566-lib-message.sh | |
| parent | 966f40086f36a5bf26d8c180cd34a01636971a84 (diff) | |
lib/message: move xapian call inside try/catch block in _n_m_delete
The call to delete_document can throw exceptions (and can happen in
practice [1]), so catch the exception and extract the error
message. As a side effect, also move the call to _n_m_has_term inside
the try/catch. This should not change anything as that function
already traps any Xapian exceptions.
[1]: id:wwuk039sk2p.fsf@chaotikum.eu
Diffstat (limited to 'test/T566-lib-message.sh')
| -rwxr-xr-x | test/T566-lib-message.sh | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/T566-lib-message.sh b/test/T566-lib-message.sh index 562ab05a..7f0e8eb0 100755 --- a/test/T566-lib-message.sh +++ b/test/T566-lib-message.sh @@ -518,7 +518,6 @@ test_expect_equal_file EXPECTED OUTPUT TERMLIST_PATH=(${MAIL_DIR}/.notmuch/xapian/termlist.*) test_begin_subtest "remove message with corrupted db" -test_subtest_known_broken backup_database cat c_head0 - c_tail <<'EOF' | test_private_C ${MAIL_DIR} ${TERMLIST_PATH} { |
