diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-12-08 15:32:03 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-12-08 21:46:55 +0100 |
commit | 34c971b594bad41fa6c2ad4a9798e5a18de129b5 (patch) | |
tree | 0c3956c35f827d1649e0520abf18974a4e0ec8e2 /apps | |
parent | e64a57b1e9c2ba6c6f54eff73c414be9e78dafbe (diff) | |
download | mupdf-34c971b594bad41fa6c2ad4a9798e5a18de129b5.tar.xz |
Throw exceptions for read errors.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/pdfdraw.c | 2 | ||||
-rw-r--r-- | apps/win_main.c | 2 |
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); |