summaryrefslogtreecommitdiffstats
path: root/libtests/json_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libtests/json_handler.cc')
-rw-r--r--libtests/json_handler.cc3
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;
}