Skip to content

Commit 062f7ad

Browse files
savilleclaude
andcommitted
XENG-10487 Fix VCS detection failure exit code
sys.exit() without argument exits 0 (success). Both VCSUnsupported and VCSMissingRevision errors now exit with code 1 to signal failure. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 78657f4 commit 062f7ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

buildrunner/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ def __init__(
115115
self.log.write(
116116
f"{err}\nPlease verify you have a VCS set up for this project.\n"
117117
)
118-
sys.exit()
118+
sys.exit(1)
119119
except VCSMissingRevision as err:
120120
self.log.write(f"{err}\nMake sure you have at least one commit.\n")
121-
sys.exit()
121+
sys.exit(1)
122122

123123
# load global configuration - must come *after* VCS detection
124124
BuildRunnerConfig.initialize_instance(

0 commit comments

Comments
 (0)