diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-03-03 13:17:45 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-03-03 13:17:45 +0100 |
commit | 489f01cb790e921f7ec54797c803eac445647b05 (patch) | |
tree | a8a84b067a9707aadeaf522956a703f4abda2be8 | |
parent | e3a4ea32fed4ae837df1c918275950bb8f7a326f (diff) | |
download | mupdf-489f01cb790e921f7ec54797c803eac445647b05.tar.xz |
Add warning message when we trigger a repair pass.
-rw-r--r-- | source/pdf/pdf-repair.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/pdf/pdf-repair.c b/source/pdf/pdf-repair.c index 88c0be55..b9ed4b8d 100644 --- a/source/pdf/pdf-repair.c +++ b/source/pdf/pdf-repair.c @@ -319,6 +319,8 @@ pdf_repair_xref(fz_context *ctx, pdf_document *doc) fz_var(list); fz_var(obj); + fz_warn(ctx, "repairing PDF document"); + if (doc->repair_attempted) fz_throw(ctx, FZ_ERROR_GENERIC, "Repair failed already - not trying again"); doc->repair_attempted = 1; |