From 0364024781ffa709a1a86ae9c6638f71df0317ca Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 28 Jan 2022 07:46:04 -0500 Subject: Use QPDFUsage exception for cli, json, and QPDFJob errors --- libtests/json_handler.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libtests/json_handler.cc') 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 #include +#include #include #include @@ -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; } -- cgit v1.2.3-70-g09d2