mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-10 10:33:16 +01:00
lib: fix error return bug with n_d_set_config.
The catch block either needs to return, or the function needs to return "status". Choose the latter for consistency with n_d_get_config.
This commit is contained in:
parent
f6d74be840
commit
b268c8c071
2 changed files with 1 additions and 2 deletions
|
@ -60,7 +60,7 @@ notmuch_database_set_config (notmuch_database_t *notmuch,
|
|||
_notmuch_database_log (notmuch, "Error: A Xapian exception occurred setting metadata: %s\n",
|
||||
error.get_msg ().c_str ());
|
||||
}
|
||||
return NOTMUCH_STATUS_SUCCESS;
|
||||
return status;
|
||||
}
|
||||
|
||||
static notmuch_status_t
|
||||
|
|
|
@ -357,7 +357,6 @@ EOF
|
|||
test_expect_equal_file EXPECTED OUTPUT
|
||||
|
||||
test_begin_subtest "set config in closed database"
|
||||
test_subtest_known_broken
|
||||
cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
|
||||
{
|
||||
EXPECT0(notmuch_database_close (db));
|
||||
|
|
Loading…
Reference in a new issue