# HG changeset patch # User Matti Hamalainen # Date 1530497150 -10800 # Node ID 64730556fd94f9ab3b97b195931d911d3d9424b6 # Parent 0d19d0a47faf29ade9d2343168051061ba26f4be Only show error message if the error is other than "not supported". diff -r 0d19d0a47faf -r 64730556fd94 tools/64vw.c --- a/tools/64vw.c Mon Jul 02 05:03:52 2018 +0300 +++ b/tools/64vw.c Mon Jul 02 05:05:50 2018 +0300 @@ -297,7 +297,7 @@ if ((ret = dmReadC64Image(filename, forced, &fmt, &cimage)) != DMERR_OK) { - if (!optListOnly) + if (!optListOnly && ret != DMERR_NOT_SUPPORTED) { dmErrorMsg("Could not decode file '%s': %s\n", filename, dmErrorStr(ret)); @@ -452,8 +452,11 @@ if ((ret = dmReadC64Image(filename, forced, &fmt, &cimage)) != DMERR_OK) { - dmErrorMsg("Could not decode file '%s': %s\n", - filename, dmErrorStr(ret)); + if (ret != DMERR_NOT_SUPPORTED) + { + dmErrorMsg("Could not decode file '%s': %s\n", + filename, dmErrorStr(ret)); + } goto fail; }