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:
Austin Clements 2011-06-10 15:58:18 -04:00 committed by David Bremner
parent 003e718020
commit 62445dd023

View file

@ -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