Mercurial > hg > dmlib
comparison tools/gfxconv.c @ 1464:73e00bf7531c
Improve one error message by showing the error code.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 10 May 2018 21:28:14 +0300 |
parents | dcff9ac95d3f |
children | 88845f95e791 |
comparison
equal
deleted
inserted
replaced
1463:bde6a66bc2f6 | 1464:73e00bf7531c |
---|---|
1691 | 1691 |
1692 if (res == DMERR_OK) | 1692 if (res == DMERR_OK) |
1693 optInFormat = FFMT_BITMAP; | 1693 optInFormat = FFMT_BITMAP; |
1694 else | 1694 else |
1695 { | 1695 { |
1696 dmErrorMsg("Could not decode input image.\n"); | 1696 dmErrorMsg("Could not decode input image: %s.\n", dmErrorStr(res)); |
1697 exit(3); | 1697 exit(3); |
1698 } | 1698 } |
1699 } | 1699 } |
1700 | 1700 |
1701 if (optInFormat == FFMT_AUTO || optInFormat == FFMT_IMAGE) | 1701 if (optInFormat == FFMT_AUTO || optInFormat == FFMT_IMAGE) |