changeset 1998:0d19d0a47faf

Improve error message for not being able to decode the file.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 02 Jul 2018 05:03:52 +0300
parents 2f8506171064
children 64730556fd94
files tools/64vw.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tools/64vw.c	Mon Jul 02 03:36:08 2018 +0300
+++ b/tools/64vw.c	Mon Jul 02 05:03:52 2018 +0300
@@ -299,8 +299,8 @@
             {
                 if (!optListOnly)
                 {
-                    dmErrorMsg("Could not read image file '%s', %d: %s\n",
-                        filename, ret, dmErrorStr(ret));
+                    dmErrorMsg("Could not decode file '%s': %s\n",
+                        filename, dmErrorStr(ret));
                 }
             }
             else
@@ -452,7 +452,8 @@
 
             if ((ret = dmReadC64Image(filename, forced, &fmt, &cimage)) != DMERR_OK)
             {
-                dmErrorMsg("Failed to decode bitmap data %d: %s\n", ret, dmErrorStr(ret));
+                dmErrorMsg("Could not decode file '%s': %s\n",
+                    filename, dmErrorStr(ret));
                 goto fail;
             }