aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2020-08-01 09:25:59 -0300
committerDavid Bremner <david@tethera.net>2020-08-03 20:59:06 -0300
commitf4f5db0f1a6e89f56bfd73f8517c1cac7af20290 (patch)
tree6b7861ed6b9f07681774b65e399da5d982d41928
parentb03cc6cf90c302b66453feb081b36fabe927a576 (diff)
lib: fix return value for n_directory_delete
Falling out of the catch meant the error return was lost
-rw-r--r--lib/directory.cc2
-rwxr-xr-xtest/T563-lib-directory.sh1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/directory.cc b/lib/directory.cc
index 79ceea31..eee8254e 100644
--- a/lib/directory.cc
+++ b/lib/directory.cc
@@ -323,7 +323,7 @@ notmuch_directory_delete (notmuch_directory_t *directory)
}
notmuch_directory_destroy (directory);
- return NOTMUCH_STATUS_SUCCESS;
+ return status;
}
void
diff --git a/test/T563-lib-directory.sh b/test/T563-lib-directory.sh
index b91a1c87..7e44e805 100755
--- a/test/T563-lib-directory.sh
+++ b/test/T563-lib-directory.sh
@@ -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);