[ox/oc] Fix sub-object read not to return early

This commit is contained in:
Gary Talent 2022-11-30 22:51:57 -06:00
parent d82ec27296
commit 50e2fadcd1

View File

@ -149,7 +149,7 @@ Error OrganicClawReader::field(const char *key, T *val) noexcept {
if (jv.empty() || jv.isObject()) {
auto reader = child(key);
ModelHandlerInterface handler(&reader);
return model(&handler, val);
err = model(&handler, val);
} else {
err = OxError(1, "Type mismatch");
}