diff options
author | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-09 20:25:13 +0300 |
---|---|---|
committer | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-09 20:46:53 +0300 |
commit | 6ef6895772bc473a21252db8a2a9f4c1b179841c (patch) | |
tree | d02a2d6e7014703f915b4042d8648196847186a6 /yt/cpp/mapreduce/http/http_client.cpp | |
parent | c9bb61f5c70bf0d4194b5d6285afc1e5447130e4 (diff) | |
download | ydb-6ef6895772bc473a21252db8a2a9f4c1b179841c.tar.gz |
Y_VERIFY->Y_ABORT_UNLESS at ^yt
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'yt/cpp/mapreduce/http/http_client.cpp')
-rw-r--r-- | yt/cpp/mapreduce/http/http_client.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yt/cpp/mapreduce/http/http_client.cpp b/yt/cpp/mapreduce/http/http_client.cpp index a2af1182dc..6dc24c6ef2 100644 --- a/yt/cpp/mapreduce/http/http_client.cpp +++ b/yt/cpp/mapreduce/http/http_client.cpp @@ -226,7 +226,7 @@ public: CheckErrorResponse(Context_.HostName, Context_.RequestId, Response_); if (TConfig::Get()->UseAbortableResponse) { - Y_VERIFY(!Context_.Url.empty()); + Y_ABORT_UNLESS(!Context_.Url.empty()); Stream_ = std::make_unique<TAbortableCoreHttpResponse>(std::move(stream), Context_.Url); } else { Stream_ = std::move(stream); @@ -423,9 +423,9 @@ private: // if error has happend. This function tries to read error response // in such cases. void HandleWriteException() { - Y_VERIFY(WriteError_ == nullptr); + Y_ABORT_UNLESS(WriteError_ == nullptr); WriteError_ = std::current_exception(); - Y_VERIFY(WriteError_ != nullptr); + Y_ABORT_UNLESS(WriteError_ != nullptr); try { HttpRequest_->FinishWithError()->GetResponseStream(); } catch (const TErrorResponse &) { |