summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2009-06-29 01:13:53 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2009-06-29 01:13:53 +0200
commitc687f3d1ded05d5e349e6db248dc97dd54bcc068 (patch)
treeb6b57a174376b79507b7fca566bf42dfbe96867b /apps
parente460d9a7c80ab7c2ac1d885ea66303d4ee17d39a (diff)
downloadmupdf-c687f3d1ded05d5e349e6db248dc97dd54bcc068.tar.xz
Attempt to continue is password is missing for pdf debug tools.
Diffstat (limited to 'apps')
-rw-r--r--apps/pdfinfo.c2
-rw-r--r--apps/pdfshow.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/pdfinfo.c b/apps/pdfinfo.c
index 108b77e7..e9f9a77d 100644
--- a/apps/pdfinfo.c
+++ b/apps/pdfinfo.c
@@ -83,7 +83,7 @@ void opensrc(char *filename, char *password, int loadpages)
{
int okay = pdf_setpassword(src->crypt, password);
if (!okay)
- die(fz_throw("invalid password"));
+ fz_warn("invalid password, attemping to continue.");
}
if (loadpages)
diff --git a/apps/pdfshow.c b/apps/pdfshow.c
index ba12ba09..ef301944 100644
--- a/apps/pdfshow.c
+++ b/apps/pdfshow.c
@@ -39,7 +39,7 @@ void openxref(char *filename, char *password)
{
int okay = pdf_setpassword(xref->crypt, password);
if (!okay)
- die(fz_throw("invalid password"));
+ fz_warn("invalid password, attempting to continue.");
}
/* TODO: move into mupdf lib, see pdfapp_open in pdfapp.c */