From d8a99ed4f67acb6346f42ade9fb58c0c34cb193b Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sat, 23 Aug 2008 15:01:03 +0200 Subject: Print unhandled errors so debug info is not lost. --- stream/stm_open.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'stream/stm_open.c') 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) -- cgit v1.2.3