changeset 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 bde6a66bc2f6
children 88845f95e791
files tools/gfxconv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);
         }
     }