diff tools/gfxconv.c @ 1464:73e00bf7531c

Improve one error message by showing the error code.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 10 May 2018 21:28:14 +0300
parents dcff9ac95d3f
children 88845f95e791
line wrap: on
line diff
--- a/tools/gfxconv.c	Thu May 10 21:27:24 2018 +0300
+++ b/tools/gfxconv.c	Thu May 10 21:28:14 2018 +0300
@@ -1693,7 +1693,7 @@
             optInFormat = FFMT_BITMAP;
         else
         {
-            dmErrorMsg("Could not decode input image.\n");
+            dmErrorMsg("Could not decode input image: %s.\n", dmErrorStr(res));
             exit(3);
         }
     }