diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-01-28 13:46:04 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-01-30 19:11:03 +0100 |
commit | 0364024781ffa709a1a86ae9c6638f71df0317ca (patch) | |
tree | 7fde4d205b81d4fb65a07736d95fb1a09d746022 /libtests/json_handler.cc | |
parent | 764feb0f8e0b7753c2d3efe644561220acbc771c (diff) | |
download | qpdf-0364024781ffa709a1a86ae9c6638f71df0317ca.tar.zst |
Use QPDFUsage exception for cli, json, and QPDFJob errors
Diffstat (limited to 'libtests/json_handler.cc')
-rw-r--r-- | libtests/json_handler.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libtests/json_handler.cc b/libtests/json_handler.cc index 7f6349f9..c1af238f 100644 --- a/libtests/json_handler.cc +++ b/libtests/json_handler.cc @@ -1,5 +1,6 @@ #include <qpdf/JSONHandler.hh> #include <qpdf/QUtil.hh> +#include <qpdf/QPDFUsage.hh> #include <iostream> #include <cassert> @@ -120,7 +121,7 @@ static void test_errors() fn(); assert(false); } - catch (JSONHandler::Error& e) + catch (QPDFUsage& e) { std::cout << msg << ": " << e.what() << std::endl; } |