summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <colomar.6.4.3@gmail.com>2020-04-14 22:01:33 +0200
committerAlejandro Colomar <colomar.6.4.3@gmail.com>2020-04-14 22:01:33 +0200
commit08be816b81a2a0dea8848dc5a1913fd22622b237 (patch)
treef6f392378c15b02f1be0187764b870b72798fbc8
parent73e24256f0efc41f2f7989cb7ec202ec25143e0b (diff)
Report error to stderr
-rw-r--r--src/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 6b7616b..3eea7d8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -95,8 +95,11 @@ int main (void)
alx_cv_imwrite(img, "/tmp/wash.png");
- status = 0;
-err: deinit(img);
+ deinit(img);
+ return 0;
+err:
+ fprintf(stderr, "Error reading label\n");
+ deinit(img);
return status;
}