mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
fix JsonValidation leaking exceptions on into
This commit is contained in:
parent
131539fa00
commit
83847e37a1
1 changed files with 8 additions and 1 deletions
|
@ -192,7 +192,14 @@ namespace geode {
|
|||
if (this->isError()) return *this;
|
||||
|
||||
if (self().m_json.template is<A>()) {
|
||||
target = self().m_json.template as<A>();
|
||||
try {
|
||||
target = self().m_json.template as<A>();
|
||||
}
|
||||
catch(matjson::JsonException const& e) {
|
||||
this->setError(
|
||||
self().m_hierarchy + ": Error parsing JSON: " + std::string(e.what())
|
||||
);
|
||||
}
|
||||
}
|
||||
else {
|
||||
this->setError(
|
||||
|
|
Loading…
Reference in a new issue