Mercurial > hg > dmlib
comparison 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 |
comparison
equal
deleted
inserted
replaced
805:fc26ec1d315f | 806:1e4d88fbce19 |
---|---|
1689 | 1689 |
1690 default: | 1690 default: |
1691 dmError("Unsupported output format for bitmap/image conversion.\n"); | 1691 dmError("Unsupported output format for bitmap/image conversion.\n"); |
1692 break; | 1692 break; |
1693 } | 1693 } |
1694 | |
1695 if (res != DMERR_OK) | |
1696 { | |
1697 dmError("Error writing output (%s), probably unsupported output format for bitmap/image conversion.\n", | |
1698 dmErrorStr(res)); | |
1699 } | |
1694 | 1700 |
1695 dmImageFree(outImage); | 1701 dmImageFree(outImage); |
1696 } | 1702 } |
1697 break; | 1703 break; |
1698 } | 1704 } |