Mercurial > hg > dmlib
diff tools/gfxconv.c @ 806:1e4d88fbce19
Error handling.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 06 May 2014 14:40:15 +0300 |
parents | 5ec451795ab2 |
children | cbe263ad963c |
line wrap: on
line diff
--- a/tools/gfxconv.c Tue May 06 09:24:01 2014 +0300 +++ b/tools/gfxconv.c Tue May 06 14:40:15 2014 +0300 @@ -1691,6 +1691,12 @@ dmError("Unsupported output format for bitmap/image conversion.\n"); break; } + + if (res != DMERR_OK) + { + dmError("Error writing output (%s), probably unsupported output format for bitmap/image conversion.\n", + dmErrorStr(res)); + } dmImageFree(outImage); }