diff options
-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) |