summaryrefslogtreecommitdiff
path: root/apps/pdfposter.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/pdfposter.c')
-rw-r--r--apps/pdfposter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pdfposter.c b/apps/pdfposter.c
index 050a497f..ed3a4bda 100644
--- a/apps/pdfposter.c
+++ b/apps/pdfposter.c
@@ -170,7 +170,7 @@ int pdfposter_main(int argc, char **argv)
xref = pdf_open_document_no_run(ctx, infile);
if (pdf_needs_password(xref))
if (!pdf_authenticate_password(xref, password))
- fz_throw(ctx, "cannot authenticate password: %s", infile);
+ fz_throw(ctx, FZ_ERROR_GENERIC, "cannot authenticate password: %s", infile);
/* Only retain the specified subset of the pages */
decimatepages(xref);