diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-04-24 00:03:44 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-04-24 00:25:43 +0200 |
commit | 68e721981a1fe4f1398d811bb8ed99af0e100da8 (patch) | |
tree | d2990289f704e96bd8853891846119e02d0a12f0 /libqpdf/QPDFObjectHandle.cc | |
parent | 696ca53205fd725062b541fea88d9f36742a4c74 (diff) | |
download | qpdf-68e721981a1fe4f1398d811bb8ed99af0e100da8.tar.zst |
Add new QPDF::warn that takes most of QPDFExc's arguments
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r-- | libqpdf/QPDFObjectHandle.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc index 8b31c3b6..9fadbef3 100644 --- a/libqpdf/QPDFObjectHandle.cc +++ b/libqpdf/QPDFObjectHandle.cc @@ -1556,8 +1556,9 @@ QPDFObjectHandle::arrayOrStreamToStreamArray( item.getOwningQPDF(), QPDFExc( qpdf_e_damaged_pdf, - description, - "item index " + QUtil::int_to_string(i) + " (from 0)", + "", + description + ": item index " + + QUtil::int_to_string(i) + " (from 0)", 0, "ignoring non-stream in an array of streams")); } |