diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2010-06-06 18:03:17 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2010-06-06 18:03:17 +0200 |
commit | 9aab7bf97f6399e649ccecd70e32060dea4f7855 (patch) | |
tree | 459b88b8535a18f91a1911793f8863e60d1120ed /apps/pdfapp.c | |
parent | 65927ab265ea1e6435a18801586c87bb27406369 (diff) | |
download | mupdf-9aab7bf97f6399e649ccecd70e32060dea4f7855.tar.xz |
Improve error message to print page number and document title when unable to draw page.
Diffstat (limited to 'apps/pdfapp.c')
-rw-r--r-- | apps/pdfapp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/pdfapp.c b/apps/pdfapp.c index a271f25f..abde068b 100644 --- a/apps/pdfapp.c +++ b/apps/pdfapp.c @@ -245,7 +245,10 @@ static void pdfapp_showpage(pdfapp_t *app, int loadpage, int drawpage) mdev = fz_newlistdevice(list); error = pdf_runcontentstream(mdev, fz_identity(), app->xref, app->page->resources, app->page->contents); if (error) + { + error = fz_rethrow(error, "cannot draw page %d in '%s'", app->pageno, app->doctitle); pdfapp_error(app, error); + } fz_freedevice(mdev); if (app->image) |