changeset 806:1e4d88fbce19

Error handling.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 06 May 2014 14:40:15 +0300
parents fc26ec1d315f
children d83dc7e47076
files tools/gfxconv.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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);
             }