lib: fix return value for n_directory_delete

Falling out of the catch meant the error return was lost
This commit is contained in:
David Bremner 2020-08-01 09:25:59 -03:00
parent b03cc6cf90
commit f4f5db0f1a
2 changed files with 1 additions and 2 deletions

View file

@ -323,7 +323,7 @@ notmuch_directory_delete (notmuch_directory_t *directory)
}
notmuch_directory_destroy (directory);
return NOTMUCH_STATUS_SUCCESS;
return status;
}
void

View file

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