# HG changeset patch # User Matti Hamalainen # Date 1424699954 -7200 # Node ID 9541ea963e7579deb179ea0acae1d576c3748f8e # Parent 90a879277ca2e4617e5069946b96ad3a0a305069 Add some error handling. diff -r 90a879277ca2 -r 9541ea963e75 tools/gfxconv.c --- a/tools/gfxconv.c Mon Feb 23 15:44:33 2015 +0200 +++ b/tools/gfxconv.c Mon Feb 23 15:59:14 2015 +0200 @@ -1612,8 +1612,13 @@ cfmt->name, cfmt->type, cfmt->fext); } - if (res == 0) + if (res == DMERR_OK) optInFormat = FFMT_BITMAP; + else + { + dmError("Could not decode input image.\n"); + exit(3); + } } if (optInFormat == FFMT_AUTO || optInFormat == FFMT_IMAGE)