Browse Source

[devtools/ya/app] Use UNHANDLED_EXCEPTION exit code in case of any unhandled exception
d2096b68c73660f5f1be097e031d167f18fb0b62

prettyboy 8 months ago
parent
commit
7b4c9f080c
1 changed files with 7 additions and 1 deletions
  1. 7 1
      build/scripts/error.py

+ 7 - 1
build/scripts/error.py

@@ -19,8 +19,14 @@ TEMPORARY_ERROR_MESSAGES = [
 
 # Node exit codes
 class ExitCodes(object):
+    GENERIC_ERROR = 1
+    # 2 is reserved not to be confused with bash's exit code
+    # For more info see https://www.gnu.org/software/bash/manual/html_node/Exit-Status.html
+    _ = 2
+    UNHANDLED_EXCEPTION = 3
+    CONFIGURE_ERROR = 8
+    NO_TESTS_COLLECTED = 9
     TEST_FAILED = 10
-    COMPILATION_FAILED = 11
     INFRASTRUCTURE_ERROR = 12
     NOT_RETRIABLE_ERROR = 13
     YT_STORE_FETCH_ERROR = 14