aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFObjectHandle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r--libqpdf/QPDFObjectHandle.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc
index d1bc58ca..f4a8a0a4 100644
--- a/libqpdf/QPDFObjectHandle.cc
+++ b/libqpdf/QPDFObjectHandle.cc
@@ -1290,10 +1290,9 @@ QPDFObjectHandle::pipeContentStreams(
if (! stream.pipeStreamData(p, 0, qpdf_dl_specialized))
{
QTC::TC("qpdf", "QPDFObjectHandle errors in parsecontent");
- warn(stream.getOwningQPDF(),
- QPDFExc(qpdf_e_damaged_pdf, "content stream",
- description, 0,
- "errors while decoding content stream"));
+ throw QPDFExc(qpdf_e_damaged_pdf, "content stream",
+ description, 0,
+ "errors while decoding content stream");
}
}
}