diff options
author | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-17 08:13:09 +0300 |
---|---|---|
committer | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-17 08:37:35 +0300 |
commit | 0e978a7806dcbea4612c1749c98a5ebdb6e16539 (patch) | |
tree | 499d2649b73b9075bca099fea95239b23ff27db7 /util | |
parent | 7d562632b151b2e9b50b102d67cf3bd9909e932c (diff) | |
download | ydb-0e978a7806dcbea4612c1749c98a5ebdb6e16539.tar.gz |
Y_FAIL->Y_ABORT at '^util'
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'util')
-rw-r--r-- | util/generic/cast.h | 2 | ||||
-rw-r--r-- | util/generic/maybe.cpp | 2 | ||||
-rw-r--r-- | util/system/mutex.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/util/generic/cast.h b/util/generic/cast.h index 7e130b6031..f827bde5cb 100644 --- a/util/generic/cast.h +++ b/util/generic/cast.h @@ -147,7 +147,7 @@ inline TSmallInt IntegerCast(TLargeInt largeInt) noexcept { try { return SafeIntegerCast<TSmallInt>(largeInt); } catch (const yexception& exc) { - Y_FAIL("IntegerCast: %s", exc.what()); + Y_ABORT("IntegerCast: %s", exc.what()); } } diff --git a/util/generic/maybe.cpp b/util/generic/maybe.cpp index 43262934f8..c238002739 100644 --- a/util/generic/maybe.cpp +++ b/util/generic/maybe.cpp @@ -7,7 +7,7 @@ [[noreturn]] void NMaybe::TPolicyUndefinedFail::OnEmpty(const std::type_info& valueTypeInfo) { const TString typeName = TypeName(valueTypeInfo); - Y_FAIL("TMaybe is empty, value type: %s", typeName.c_str()); + Y_ABORT("TMaybe is empty, value type: %s", typeName.c_str()); } template <> diff --git a/util/system/mutex.cpp b/util/system/mutex.cpp index 2850c6347b..66f9a15f29 100644 --- a/util/system/mutex.cpp +++ b/util/system/mutex.cpp @@ -95,7 +95,7 @@ public: if (result == 0 || result == EBUSY) { return result == 0; } - Y_FAIL("mutex trylock failure (%s)", LastSystemErrorText(result)); + Y_ABORT("mutex trylock failure (%s)", LastSystemErrorText(result)); #endif } |