From 751f7a1a690d5b81e9b8e593d5be1ffb11ff3b3b Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Fri, 8 Nov 2024 00:00:27 +0100 Subject: [PATCH] tests: show error message when encoding failed (#1362) --- tests/extended_type.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/extended_type.cc b/tests/extended_type.cc index 3bea01e3e4..aaf7e339de 100644 --- a/tests/extended_type.cc +++ b/tests/extended_type.cc @@ -47,6 +47,7 @@ TEST_CASE("make extended type") { heif_image_handle *output_image_handle; err = heif_context_encode_image(ctx, input_image, encoder, nullptr, &output_image_handle); + if (err.message) { INFO("error message: " << err.message); } REQUIRE(err.code == heif_error_Ok); heif_item_id itemId;