diff options
author | David Bremner <david@tethera.net> | 2020-07-19 09:51:03 -0300 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2020-07-22 19:52:55 -0300 |
commit | b268c8c0711a12b26a3abd3c8dde38a3679999b1 (patch) | |
tree | 94e78b1e6ccc5efb1d19c58154949f7937b4582a /lib | |
parent | f6d74be84071b31e1e8d466bea76dd8d44d54377 (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/config.cc b/lib/config.cc index 292f0288..20036471 100644 --- a/lib/config.cc +++ b/lib/config.cc @@ -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 |