diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2008-08-23 15:01:03 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2008-08-23 15:01:03 +0200 |
commit | d8a99ed4f67acb6346f42ade9fb58c0c34cb193b (patch) | |
tree | d5d1ef4eaec45407cdb16015240d10a495245937 /stream/stm_open.c | |
parent | 1093f51b2e639c30a958e236c798c32693958d73 (diff) | |
download | mupdf-d8a99ed4f67acb6346f42ade9fb58c0c34cb193b.tar.xz |
Print unhandled errors so debug info is not lost.
Diffstat (limited to 'stream/stm_open.c')
-rw-r--r-- | stream/stm_open.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/stream/stm_open.c b/stream/stm_open.c index 908b1a7b..633403bd 100644 --- a/stream/stm_open.c +++ b/stream/stm_open.c @@ -43,8 +43,11 @@ fz_dropstream(fz_stream *stm) { if (stm->error) { - fz_warn("dropping unhandled ioerror"); + fflush(stdout); + fz_printerror(stm->error); fz_droperror(stm->error); + fflush(stderr); + fz_warn("dropped unhandled ioerror"); } if (stm->mode == FZ_SWRITE) |