summaryrefslogtreecommitdiff
path: root/apps/pdfapp.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2010-05-16 03:58:11 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2010-05-16 03:58:11 +0200
commit06e2eb908606b9b15ac3e92dee55e9b165c68f30 (patch)
treead0212ea3079e5fce4c7cf12989f7ca733ff2b5a /apps/pdfapp.c
parentc95d6043d611917688e70ed8c65ab665913d3672 (diff)
downloadmupdf-06e2eb908606b9b15ac3e92dee55e9b165c68f30.tar.xz
Print filename in error message when not being able to open file in pdftools.
Diffstat (limited to 'apps/pdfapp.c')
-rw-r--r--apps/pdfapp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pdfapp.c b/apps/pdfapp.c
index 2f8a57fc..d3e3c49d 100644
--- a/apps/pdfapp.c
+++ b/apps/pdfapp.c
@@ -73,7 +73,7 @@ void pdfapp_open(pdfapp_t *app, char *filename, int fd)
file = fz_openfile(fd);
app->xref = pdf_openxref(file);
if (!app->xref)
- pdfapp_error(app, -1);
+ pdfapp_error(app, fz_throw("cannot open PDF file '%s'", filename));
/*
* Handle encrypted PDF files