diff options
| -rw-r--r-- | yt/cpp/mapreduce/http/helpers.cpp | 10 | ||||
| -rw-r--r-- | yt/cpp/mapreduce/http/helpers.h | 6 |
2 files changed, 0 insertions, 16 deletions
diff --git a/yt/cpp/mapreduce/http/helpers.cpp b/yt/cpp/mapreduce/http/helpers.cpp index c819e515b87..0e34610ef1a 100644 --- a/yt/cpp/mapreduce/http/helpers.cpp +++ b/yt/cpp/mapreduce/http/helpers.cpp @@ -100,16 +100,6 @@ void LogRequest(const THttpHeader& header, const TString& url, bool includeParam GetLoggedAttributes(header, url, includeParameters, Max<size_t>())); } -void ExtendGenericError(TErrorResponse& errorResponse, int code, TString message) -{ - const auto& error = errorResponse.GetError(); - - auto inner = error.InnerErrors(); - inner.emplace_back(code, std::move(message)); - - errorResponse.SetError(TYtError(error.GetCode(), error.GetMessage(), std::move(inner), error.GetAttributes())); -} - //////////////////////////////////////////////////////////////////////////////// } // namespace NYT diff --git a/yt/cpp/mapreduce/http/helpers.h b/yt/cpp/mapreduce/http/helpers.h index 24f9f59e353..474813674ef 100644 --- a/yt/cpp/mapreduce/http/helpers.h +++ b/yt/cpp/mapreduce/http/helpers.h @@ -24,12 +24,6 @@ TString GetLoggedAttributes(const THttpHeader& header, const TString& url, bool void LogRequest(const THttpHeader& header, const TString& url, bool includeParameters, const TString& requestId, const TString& hostName); -// Sometimes errors may not include any specific inner errors and appear to be generic. -// To differentiate these errors and reduce reliance on HTTP status codes, we need to extend inner error information. -// -// XXX(hiddenpath): Remove this method when server will respond with specific errors. -void ExtendGenericError(TErrorResponse& errorResponse, int code, TString message); - //////////////////////////////////////////////////////////////////////////////// } // namespace NYT |
