summaryrefslogtreecommitdiff
path: root/fitz/stm_open.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2009-03-11 01:44:12 +0100
committerTor Andersson <tor@ghostscript.com>2009-03-11 01:44:12 +0100
commit5aaff8260abdaefdbf7a64d3e66b1928dfe5d726 (patch)
treefebd7d6938978dac98dc0f7e6e501df46b6e3754 /fitz/stm_open.c
parent5733fd611487151f33338b1ecda4819c26ccd25f (diff)
downloadmupdf-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.c7
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)