summaryrefslogtreecommitdiff
path: root/stream/stm_open.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2008-08-23 15:01:03 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2008-08-23 15:01:03 +0200
commitd8a99ed4f67acb6346f42ade9fb58c0c34cb193b (patch)
treed5d1ef4eaec45407cdb16015240d10a495245937 /stream/stm_open.c
parent1093f51b2e639c30a958e236c798c32693958d73 (diff)
downloadmupdf-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.c5
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)