aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 325f8af..90bfcc0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -51,9 +51,10 @@ int main(int argc, char *argv[])
uint8_t brightness_min = 0x00;
uint8_t brightness_max = 0xff;
- if ( bitmap_read(args.filename, &bitmap) ) {
- printf("Error reading file\n");
- return 1;
+ int ret = bitmap_read(args.filename, &bitmap);
+ if ( ret ) {
+ printf( "%s\n", bitmap_strerror(ret) );
+ return ret;
}
if(args.fit_width > 0) {