mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
lib: Add missing status check in _notmuch_message_remove_filename.
Previously, this function would synchronize the folder list even if removing the file name failed. Now it returns immediately if removing the file name fails.
This commit is contained in:
parent
003e718020
commit
62445dd023
1 changed files with 2 additions and 0 deletions
|
@ -531,6 +531,8 @@ _notmuch_message_remove_filename (notmuch_message_t *message,
|
|||
"file-direntry", direntry);
|
||||
status = COERCE_STATUS (private_status,
|
||||
"Unexpected error from _notmuch_message_remove_term");
|
||||
if (status)
|
||||
return status;
|
||||
|
||||
/* Re-synchronize "folder:" terms for this message. This requires:
|
||||
* 1. removing all "folder:" terms
|
||||
|
|
Loading…
Reference in a new issue