From 4555e5cc78a2a8922d01aac92bb8668b94381e6d Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 28 Apr 2024 20:34:04 +0200 Subject: [PATCH] add error message convert error --- src/kds_s2000w_image_converter.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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); -- 2.39.5