aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf')
-rw-r--r--libqpdf/JSON.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libqpdf/JSON.cc b/libqpdf/JSON.cc
index c9816809..28f451a9 100644
--- a/libqpdf/JSON.cc
+++ b/libqpdf/JSON.cc
@@ -1246,7 +1246,8 @@ JSONParser::handleToken()
break;
default:
- throw std::logic_error("JSONParser::handleToken : non-terminal lexer state encountered");
+ throw std::runtime_error(
+ "JSON: offset " + std::to_string(offset) + ": premature end of input");
break;
}