summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/interface/errors.cpp
diff options
context:
space:
mode:
authorbabenko <[email protected]>2025-05-12 17:06:01 +0300
committerbabenko <[email protected]>2025-05-12 17:41:42 +0300
commitf206f4d5846545715fd46266938ba92bc49b522d (patch)
treecd2b8d1c97985a4e7ae07bc8bcf71684e5e2bffb /yt/cpp/mapreduce/interface/errors.cpp
parentf74154ede8129273b38c341aabf3857b4f3faff7 (diff)
YT-22593: Migrate HTTP headers to std::string
[diff:runtime] commit_hash:262b2e671526b138d7a9631daf5d34400fc2208c
Diffstat (limited to 'yt/cpp/mapreduce/interface/errors.cpp')
-rw-r--r--yt/cpp/mapreduce/interface/errors.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt/cpp/mapreduce/interface/errors.cpp b/yt/cpp/mapreduce/interface/errors.cpp
index 5cd8b7193bf..a694d4cc7af 100644
--- a/yt/cpp/mapreduce/interface/errors.cpp
+++ b/yt/cpp/mapreduce/interface/errors.cpp
@@ -195,10 +195,10 @@ const TVector<TYtError>& TYtError::InnerErrors() const
return InnerErrors_;
}
-void TYtError::ParseFrom(const TString& jsonError)
+void TYtError::ParseFrom(TStringBuf jsonError)
{
TJsonValue value;
- TStringInput input(jsonError);
+ TMemoryInput input(jsonError);
ReadJsonTree(&input, &value);
*this = TYtError(value);
}