aboutsummaryrefslogtreecommitdiff
path: root/src/libnpass/libnpass.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnpass/libnpass.c')
-rw-r--r--src/libnpass/libnpass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnpass/libnpass.c b/src/libnpass/libnpass.c
index fd6e447..62cbc5e 100644
--- a/src/libnpass/libnpass.c
+++ b/src/libnpass/libnpass.c
@@ -163,7 +163,7 @@ static int openstore(const char *spath, DIR **dirp)
store_type = pass_store_type(spath);
if (store_type != PASS_STORE_DIR)
- return_err(-EINVAL, "%s Not a passwordstore path", spath);
+ return (store_type < 0) ? store_type : -EINVAL;
if (spath) {
r = snprintf(abs_path, sizeof(abs_path), "%s/%s", pass_dir,