Skip to content

Commit 51245ce

Browse files
committed
Exit non-zero for invalid toolchain path
1 parent 1445886 commit 51245ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/toolchains/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ def check_toolchain_path(function):
198198
"""
199199
def perform_check(self, *args, **kwargs):
200200
if not exists(self.toolchain_path):
201-
print('[ERROR] Toolchain path does not exist for %s.\n'
201+
print('[ERROR] Toolchain path for %s does not exist.\n'
202202
'Current value: %s' % (self.name, self.toolchain_path))
203-
sys.exit()
203+
sys.exit(-1)
204204
return function(self, *args, **kwargs)
205205
return perform_check
206206

0 commit comments

Comments
 (0)