comparison tools/64vw.c @ 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 6677535b8b9f
comparison
equal deleted inserted replaced
1998:0d19d0a47faf 1999:64730556fd94
295 const DMC64ImageFormat *fmt = NULL; 295 const DMC64ImageFormat *fmt = NULL;
296 DMC64Image *cimage = NULL; 296 DMC64Image *cimage = NULL;
297 297
298 if ((ret = dmReadC64Image(filename, forced, &fmt, &cimage)) != DMERR_OK) 298 if ((ret = dmReadC64Image(filename, forced, &fmt, &cimage)) != DMERR_OK)
299 { 299 {
300 if (!optListOnly) 300 if (!optListOnly && ret != DMERR_NOT_SUPPORTED)
301 { 301 {
302 dmErrorMsg("Could not decode file '%s': %s\n", 302 dmErrorMsg("Could not decode file '%s': %s\n",
303 filename, dmErrorStr(ret)); 303 filename, dmErrorStr(ret));
304 } 304 }
305 } 305 }
450 surf = NULL; 450 surf = NULL;
451 } 451 }
452 452
453 if ((ret = dmReadC64Image(filename, forced, &fmt, &cimage)) != DMERR_OK) 453 if ((ret = dmReadC64Image(filename, forced, &fmt, &cimage)) != DMERR_OK)
454 { 454 {
455 dmErrorMsg("Could not decode file '%s': %s\n", 455 if (ret != DMERR_NOT_SUPPORTED)
456 filename, dmErrorStr(ret)); 456 {
457 dmErrorMsg("Could not decode file '%s': %s\n",
458 filename, dmErrorStr(ret));
459 }
457 goto fail; 460 goto fail;
458 } 461 }
459 462
460 if (fmt == NULL || cimage == NULL) 463 if (fmt == NULL || cimage == NULL)
461 { 464 {