Browse Source

Y_FAIL->Y_ABORT at '^util'

https://clubs.at.yandex-team.ru/arcadia/29404
ilnurkh 1 year ago
parent
commit
0e978a7806
3 changed files with 3 additions and 3 deletions
  1. 1 1
      util/generic/cast.h
  2. 1 1
      util/generic/maybe.cpp
  3. 1 1
      util/system/mutex.cpp

+ 1 - 1
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());
     }
 }
 

+ 1 - 1
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 <>

+ 1 - 1
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
     }