diff options
-rw-r--r-- | kbx/backend-kbx.c | 2 | ||||
-rw-r--r-- | kbx/frontend.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/kbx/backend-kbx.c b/kbx/backend-kbx.c index 851f2dadf..438d300b0 100644 --- a/kbx/backend-kbx.c +++ b/kbx/backend-kbx.c @@ -200,7 +200,7 @@ be_kbx_add_resource (ctrl_t ctrl, backend_handle_t *r_hd, leave: xfree (hd); - return 0; + return err; } diff --git a/kbx/frontend.c b/kbx/frontend.c index 806ff27db..6e0cbcb11 100644 --- a/kbx/frontend.c +++ b/kbx/frontend.c @@ -194,7 +194,11 @@ kbxd_add_resource (ctrl_t ctrl, const char *filename_arg, int readonly) leave: if (err) - be_generic_release_backend (ctrl, handle); + { + log_error ("error adding resource '%s': %s\n", + filename, gpg_strerror (err)); + be_generic_release_backend (ctrl, handle); + } xfree (filename); return err; } |