From 75381e2fe77de6aee7212745215fdd2147625c1d Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 17 May 2026 15:39:49 -0500 Subject: [PATCH] [ox/oc] Fix writeOC to handle error --- deps/oxlib/src/oc/include/ox/oc/write.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deps/oxlib/src/oc/include/ox/oc/write.hpp b/deps/oxlib/src/oc/include/ox/oc/write.hpp index f315aae8..a3057d2e 100644 --- a/deps/oxlib/src/oc/include/ox/oc/write.hpp +++ b/deps/oxlib/src/oc/include/ox/oc/write.hpp @@ -261,8 +261,7 @@ Error writeOC(Writer_c auto &writer, auto const &val) noexcept { OX_RETURN_ERROR(model(&handler, &val)); Json::StreamWriterBuilder const jsonBuilder; auto const str = Json::writeString(jsonBuilder, ocWriter.m_json); - writer.write(str.data(), str.size()); - return {}; + return writer.write(str.data(), str.size()); } Result writeOC(auto const &val) noexcept {