From f8eab320696b5d1a956ab7833db87e8cc26bd802 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Thu, 30 Aug 2018 17:24:25 +0800 Subject: When unrecoverable errors occur on a page, at least print them. Previously there was no visibility as to what the error was. --- source/pdf/pdf-interpret.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/pdf/pdf-interpret.c b/source/pdf/pdf-interpret.c index e4e34ee9..ddd4bcfc 100644 --- a/source/pdf/pdf-interpret.c +++ b/source/pdf/pdf-interpret.c @@ -977,7 +977,7 @@ pdf_process_stream(fz_context *ctx, pdf_processor *proc, pdf_csi *csi, fz_stream else { cookie->errors++; - fz_warn(ctx, "unrecoverable error; ignoring rest of page"); + fz_warn(ctx, "unrecoverable error; ignoring rest of page: %s", fz_caught_message(ctx)); tok = PDF_TOK_EOF; } } @@ -997,7 +997,7 @@ pdf_process_stream(fz_context *ctx, pdf_processor *proc, pdf_csi *csi, fz_stream } else { - fz_warn(ctx, "unrecoverable error; ignoring rest of page"); + fz_warn(ctx, "unrecoverable error; ignoring rest of page: %s", fz_caught_message(ctx)); tok = PDF_TOK_EOF; } } -- cgit v1.2.3