Skip to content

Commit

Permalink
tests: show error message when encoding failed
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Nov 7, 2024
1 parent 751f7a1 commit 9664776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/extended_type.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ 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);
INFO("error message: " << err.message);
REQUIRE(err.code+1 == heif_error_Ok);

heif_item_id itemId;
err = heif_context_get_primary_image_ID(ctx, &itemId);
Expand Down

0 comments on commit 9664776

Please sign in to comment.