summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-12-08 15:32:03 +0100
committerTor Andersson <tor.andersson@artifex.com>2011-12-08 21:46:55 +0100
commit34c971b594bad41fa6c2ad4a9798e5a18de129b5 (patch)
tree0c3956c35f827d1649e0520abf18974a4e0ec8e2 /apps
parente64a57b1e9c2ba6c6f54eff73c414be9e78dafbe (diff)
downloadmupdf-34c971b594bad41fa6c2ad4a9798e5a18de129b5.tar.xz
Throw exceptions for read errors.
Diffstat (limited to 'apps')
-rw-r--r--apps/pdfdraw.c2
-rw-r--r--apps/win_main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/pdfdraw.c b/apps/pdfdraw.c
index 6d43dc01..ff9f72a3 100644
--- a/apps/pdfdraw.c
+++ b/apps/pdfdraw.c
@@ -365,7 +365,7 @@ int main(int argc, char **argv)
ctx = fz_new_context(&fz_alloc_default);
if (ctx == NULL)
{
- fprintf(stderr, "Failed to init context\n");
+ fprintf(stderr, "cannot init context\n");
exit(1);
}
diff --git a/apps/win_main.c b/apps/win_main.c
index 3e293957..45880e12 100644
--- a/apps/win_main.c
+++ b/apps/win_main.c
@@ -861,7 +861,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShow
ctx = fz_new_context(&fz_alloc_default);
if (ctx == NULL)
{
- fprintf(stderr, "Failed to init context");
+ fprintf(stderr, "cannot init context");
exit(1);
}
pdfapp_init(ctx, &gapp);