aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--omar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/omar.c b/omar.c
index 8234225..1164f7b 100644
--- a/omar.c
+++ b/omar.c
@@ -138,7 +138,8 @@ archive_create(const char *base)
dp = opendir(base);
if (dp == NULL) {
- return -EIO;
+ perror("opendir");
+ return -ENOENT;
}
while ((ent = readdir(dp)) != NULL) {
@@ -196,6 +197,7 @@ main(int argc, char **argv)
}
if ((error = state_init(&st)) != 0) {
+ printf("omar: failed to init state\n");
return error;
}