From: Bastian Dehn Date: Sun, 28 Apr 2024 18:34:04 +0000 (+0200) Subject: add error message convert error X-Git-Tag: v1.0.1^2~9 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=4555e5cc78a2a8922d01aac92bb8668b94381e6d;p=sane-kds-s2000w-net.git add error message convert error --- diff --git a/src/kds_s2000w_image_converter.c b/src/kds_s2000w_image_converter.c index 31da7b4..2252f80 100644 --- a/src/kds_s2000w_image_converter.c +++ b/src/kds_s2000w_image_converter.c @@ -33,12 +33,15 @@ void kds_s2000w_convert_to_pnm_with_depth(blobdata* in, streamname = malloc(sizeof(char) * str_length); snprintf(streamname, str_length, "streamin.%s", format); memcpy(image_info->filename, streamname, str_length); + debug_printf(DEBUG, image_info->filename); input_image = BlobToImage(image_info, in->data, in->size , exception); - - input_image->properties = NULL; - if (exception->severity != UndefinedException) + if (exception->severity != UndefinedException) { + fprintf(stderr, "%s\n", GetExceptionMessage(exception->error_number)); CatchException(exception); + } + + input_image->properties = NULL; if (input_image == NULL) { DestroyImageInfo(image_info);