mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
lib: fix return value for n_directory_delete
Falling out of the catch meant the error return was lost
This commit is contained in:
parent
b03cc6cf90
commit
f4f5db0f1a
2 changed files with 1 additions and 2 deletions
|
@ -323,7 +323,7 @@ notmuch_directory_delete (notmuch_directory_t *directory)
|
|||
}
|
||||
notmuch_directory_destroy (directory);
|
||||
|
||||
return NOTMUCH_STATUS_SUCCESS;
|
||||
return status;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -76,7 +76,6 @@ test_expect_equal_file EXPECTED OUTPUT
|
|||
|
||||
backup_database
|
||||
test_begin_subtest "delete directory document for a closed db"
|
||||
test_subtest_known_broken
|
||||
cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
|
||||
{
|
||||
stat = notmuch_directory_delete (dir);
|
||||
|
|
Loading…
Reference in a new issue