mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
notmuch_database_add_message: Add missing error-value propagation.
Thanks to Mike Hommey for doing the analysis that led to noticing that this was missing.
This commit is contained in:
parent
52292c5485
commit
656e4c413d
1 changed files with 4 additions and 1 deletions
|
@ -940,8 +940,11 @@ notmuch_database_add_message (notmuch_database_t *notmuch,
|
|||
|
||||
talloc_free (message_id);
|
||||
|
||||
if (message == NULL)
|
||||
if (message == NULL) {
|
||||
ret = COERCE_STATUS (private_status,
|
||||
"Unexpected status value from _notmuch_message_create_for_message_id");
|
||||
goto DONE;
|
||||
}
|
||||
|
||||
/* Is this a newly created message object? */
|
||||
if (private_status == NOTMUCH_PRIVATE_STATUS_NO_DOCUMENT_FOUND) {
|
||||
|
|
Loading…
Reference in a new issue