Skip to content

Commit 29b3785

Browse files
authored
Merge pull request #235 from bluesliverx/main
XENG-10487 Fix VCS detection failure exit code
2 parents 78657f4 + 062f7ad commit 29b3785

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)