Mercurial > hg > dmlib
changeset 2451:2e2a6c344371
Move conversion final write error checking to a more generic location.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 15 Apr 2020 13:50:28 +0300 |
parents | dc92cf744ad9 |
children | 0fdc14005e43 |
files | tools/gfxconv.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/gfxconv.c Wed Apr 15 13:31:08 2020 +0300 +++ b/tools/gfxconv.c Wed Apr 15 13:50:28 2020 +0300 @@ -2394,16 +2394,16 @@ dmErrorMsg("Unsupported output format for image conversion.\n"); break; } - - if (res != DMERR_OK) - { - dmErrorMsg("Error writing output (%s), probably unsupported output format for bitmap/image conversion.\n", - dmErrorStr(res)); - } } break; } + if (res != DMERR_OK) + { + dmErrorMsg("Error writing output data: %s\n", + dmErrorStr(res)); + } + exit: // Cleanup dmFree(convFormatList);