diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:25 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:25 +0300 |
commit | 344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/scheme/scimpl_json_read.cpp | |
parent | 706b83ed7de5a473436620367af31fc0ceecde07 (diff) | |
download | ydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/scheme/scimpl_json_read.cpp')
-rw-r--r-- | library/cpp/scheme/scimpl_json_read.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/scheme/scimpl_json_read.cpp b/library/cpp/scheme/scimpl_json_read.cpp index 12b7625200..8a29cc7739 100644 --- a/library/cpp/scheme/scimpl_json_read.cpp +++ b/library/cpp/scheme/scimpl_json_read.cpp @@ -7,7 +7,7 @@ namespace NSc { struct TJsonError { size_t Offset = 0; - TMaybe<TString> Reason; + TMaybe<TString> Reason; }; struct TJsonDeserializer : NJson::TJsonCallbacks { @@ -57,14 +57,14 @@ namespace NSc { } }; - typedef TVector<TContainer> TStackType; + typedef TVector<TContainer> TStackType; public: TValue& Root; TJsonError& Error; const TJsonOpts& Cfg; - TStackType Stack; + TStackType Stack; bool Virgin = true; public: @@ -213,7 +213,7 @@ namespace NSc { return res; } - TString reason = err.Reason.Empty() ? "NULL" : *err.Reason; + TString reason = err.Reason.Empty() ? "NULL" : *err.Reason; ythrow TSchemeParseException(err.Offset, reason) << "JSON error at offset " << err.Offset << " (" << reason << ")"; } |