aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json/common/defs.cpp
diff options
context:
space:
mode:
authorilnurkh <ilnurkh@yandex-team.com>2023-07-27 13:41:56 +0300
committerilnurkh <ilnurkh@yandex-team.com>2023-07-27 13:41:56 +0300
commit1761cf17008788a7ec126e953ffe46c41721d168 (patch)
treedecb73843d5195cce15a243badf6614f1bf04909 /library/cpp/json/common/defs.cpp
parent114da2ea902184524cac007509fbe899d8154b05 (diff)
downloadydb-1761cf17008788a7ec126e953ffe46c41721d168.tar.gz
add TryNodeFromJsonString: ability to parse object and check errors without try-catch
Diffstat (limited to 'library/cpp/json/common/defs.cpp')
-rw-r--r--library/cpp/json/common/defs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/cpp/json/common/defs.cpp b/library/cpp/json/common/defs.cpp
index da86da82e4..fbc86c0f18 100644
--- a/library/cpp/json/common/defs.cpp
+++ b/library/cpp/json/common/defs.cpp
@@ -62,6 +62,7 @@ bool TJsonCallbacks::OnEnd() {
}
void TJsonCallbacks::OnError(size_t off, TStringBuf reason) {
+ HaveErrors = true;
if (ThrowException) {
ythrow TJsonException() << "JSON error at offset " << off << " (" << reason << ")";
}