]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add error message convert error
authorBastian Dehn <hhaalo@arcor.de>
Sun, 28 Apr 2024 18:34:04 +0000 (20:34 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 28 Apr 2024 18:34:04 +0000 (20:34 +0200)
src/kds_s2000w_image_converter.c

index 31da7b455c843daaa4a0335965bca08a07883342..2252f80dd00df99ab4895a410edb134489e1c3e0 100644 (file)
@@ -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);