diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-06-25 18:30:01 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-06-25 18:43:06 +0200 |
commit | 4db1de97cea9dfab3f3abe43766053ba0d594610 (patch) | |
tree | 61ead5970dc0e3d57af683caad664d084e2715ea /libqpdf/QPDF_pages.cc | |
parent | 201e8798d75c34498a39c31a7e2c73433bb6a8d8 (diff) | |
download | qpdf-4db1de97cea9dfab3f3abe43766053ba0d594610.tar.zst |
Convert some cases of logic_error to runtime_error
There were a few cases that could be caused by invalid input rather
than bugs in the code which were throwing logic_error instead of
runtime_error.
Diffstat (limited to 'libqpdf/QPDF_pages.cc')
-rw-r--r-- | libqpdf/QPDF_pages.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDF_pages.cc b/libqpdf/QPDF_pages.cc index fe23e850..d95002a6 100644 --- a/libqpdf/QPDF_pages.cc +++ b/libqpdf/QPDF_pages.cc @@ -166,7 +166,7 @@ QPDF::flattenPagesTree() // /Count has not changed if (pages.getKey("/Count").getUIntValue() != len) { - throw std::logic_error("/Count is wrong after flattening pages tree"); + throw std::runtime_error("/Count is wrong after flattening pages tree"); } } |