diff options
author | Tor Andersson <tor@ghostscript.com> | 2009-03-11 01:44:12 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2009-03-11 01:44:12 +0100 |
commit | 5aaff8260abdaefdbf7a64d3e66b1928dfe5d726 (patch) | |
tree | febd7d6938978dac98dc0f7e6e501df46b6e3754 /fitz/stm_open.c | |
parent | 5733fd611487151f33338b1ecda4819c26ccd25f (diff) | |
download | mupdf-5aaff8260abdaefdbf7a64d3e66b1928dfe5d726.tar.xz |
Add fz_catch function, and cause the throw/rethrow/catch functions to print the errors immediately.
Diffstat (limited to 'fitz/stm_open.c')
-rw-r--r-- | fitz/stm_open.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fitz/stm_open.c b/fitz/stm_open.c index 41fc8d68..c01ad725 100644 --- a/fitz/stm_open.c +++ b/fitz/stm_open.c @@ -42,11 +42,8 @@ fz_dropstream(fz_stream *stm) { if (stm->error) { - fflush(stdout); - fz_printerror(stm->error); - fz_droperror(stm->error); - fflush(stderr); - fz_warn("dropped unhandled ioerror"); + fz_catch(stm->error, "dropped unhandled ioerror"); + stm->error = fz_okay; } switch (stm->kind) |