From d5af79e1210f1246bd931a0612f24247910e7790 Mon Sep 17 00:00:00 2001 From: le vieux Date: Fri, 13 Nov 2020 01:00:20 +0100 Subject: [PATCH] eliminate an useless message --- tools/png2fimg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/png2fimg.c b/tools/png2fimg.c index d9dc0d6d..5273e783 100644 --- a/tools/png2fimg.c +++ b/tools/png2fimg.c @@ -43,7 +43,10 @@ if (foo) { if (verbosity) fimg_describe(&fimg, argv[2]); foo = fimg_dump_to_file(&fimg, argv[2], 0); -fprintf(stderr, "save as fimg -> %d\n", foo); +if (foo) { + fprintf(stderr, "save as '%s' -> err %d\n", argv[2], foo); + exit(1); + } return 0; }