diff --git a/deps/ox/src/ox/oc/read.hpp b/deps/ox/src/ox/oc/read.hpp index 8938e059..ffc4faed 100644 --- a/deps/ox/src/ox/oc/read.hpp +++ b/deps/ox/src/ox/oc/read.hpp @@ -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"); }