summaryrefslogtreecommitdiff
path: root/apps/pdfdebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/pdfdebug.c')
-rw-r--r--apps/pdfdebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/pdfdebug.c b/apps/pdfdebug.c
index 1ae84d7c..3a3f8321 100644
--- a/apps/pdfdebug.c
+++ b/apps/pdfdebug.c
@@ -57,7 +57,7 @@ void decodestream(pdf_xref *xref, int oid, int gid)
if (n == 0)
break;
if (n < 0)
- fz_abort(fz_throw("ioerror: read failed"));
+ fz_abort(fz_ioerror(stm));
printsafe(buf, n);
}
@@ -81,7 +81,7 @@ void copystream(pdf_xref *xref, int oid, int gid)
if (n == 0)
break;
if (n < 0)
- fz_abort(fz_throw("ioerror: read failed"));
+ fz_abort(fz_ioerror(stm));
printsafe(buf, n);
}