# HG changeset patch # User Matti Hamalainen # Date 1530497032 -10800 # Node ID 0d19d0a47faf29ade9d2343168051061ba26f4be # Parent 2f850617106416b7430c0c8d59e260a269222ae6 Improve error message for not being able to decode the file. diff -r 2f8506171064 -r 0d19d0a47faf tools/64vw.c --- 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; }