]> git.cworth.org Git - notmuch/commitdiff
lib/message: move xapian call inside try/catch block in _n_m_delete
authorDavid Bremner <david@tethera.net>
Sun, 4 Dec 2022 02:28:57 +0000 (22:28 -0400)
committerDavid Bremner <david@tethera.net>
Tue, 27 Dec 2022 15:59:46 +0000 (11:59 -0400)
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


No differences found