aboutsummaryrefslogtreecommitdiff
path: root/omar.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-04-28 23:14:38 -0400
committerIan Moffett <ian@osmora.org>2025-04-28 23:14:38 -0400
commitd87c67ed416056a0e2a9d73cbaaeaee3973361f9 (patch)
tree3793f86fcd3776dbf1f4b507e78803a8b410be51 /omar.c
parent4658e2ed5ab54d32df6fecc11a4f3fcff4be51f8 (diff)
Improve error handling
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'omar.c')
-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;
}