Skip to content

Commit

Permalink
Fix error when reporting unhandled exceptions on context destruction.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccxvii committed Nov 10, 2023
1 parent aa0a717 commit 8a20334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/fitz/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ fz_drop_context(fz_context *ctx)
if (!ctx)
return;

if (ctx->error.message[0])
if (ctx->error.errcode)
{
fz_flush_warnings(ctx);
fz_warn(ctx, "UNHANDLED EXCEPTION!");
Expand Down

0 comments on commit 8a20334

Please sign in to comment.