Mercurial > hg > dmlib
changeset 1999:64730556fd94
Only show error message if the error is other than "not supported".
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 02 Jul 2018 05:05:50 +0300 |
parents | 0d19d0a47faf |
children | 07cf888f0a1e |
files | tools/64vw.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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; }