summaryrefslogtreecommitdiff
path: root/apps/pdfdraw.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2010-05-22 03:56:55 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2010-05-22 03:56:55 +0200
commit12c57e57578bdb1b47d48243ea8123f3b5d52022 (patch)
treecbf729a955ae0b7e75ea2d19db08015502e28418 /apps/pdfdraw.c
parent978f4abbdba274dfbe782c290b4249c5d9b70497 (diff)
downloadmupdf-12c57e57578bdb1b47d48243ea8123f3b5d52022.tar.xz
Print indirect object reference in error messages.
Diffstat (limited to 'apps/pdfdraw.c')
-rw-r--r--apps/pdfdraw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/pdfdraw.c b/apps/pdfdraw.c
index e121de8e..0b3cdc1e 100644
--- a/apps/pdfdraw.c
+++ b/apps/pdfdraw.c
@@ -95,7 +95,7 @@ static void drawloadpage(int pagenum, struct benchmark *loadtimes)
pageobj = pdf_getpageobject(xref, pagenum);
error = pdf_loadpage(&drawpage, xref, pageobj);
if (error)
- die(fz_rethrow(error, "cannot load page %d in PDF file '%s'", pagenum, basename));
+ die(fz_rethrow(error, "cannot load page %d (%d %d R) in PDF file '%s'", pagenum, fz_tonum(pageobj), fz_togen(pageobj), basename));
if (benchmark && loadtimes)
{
@@ -310,7 +310,7 @@ static void drawxml(int pagenum)
pageobj = pdf_getpageobject(xref, pagenum);
error = pdf_loadpage(&drawpage, xref, pageobj);
if (error)
- die(fz_rethrow(error, "cannot load page %d from PDF file '%s'", pagenum, basename));
+ die(fz_rethrow(error, "cannot load page %d (%d %d R) from PDF file '%s'", pagenum, fz_tonum(pageobj), fz_togen(pageobj), basename));
ctm = fz_identity();