Exit non-zero for invalid toolchain path

pull/2418/head
Sarah Marsh 2016-08-10 12:01:00 -05:00
parent 1445886844
commit 51245ceb7a
1 changed files with 2 additions and 2 deletions

View File

@ -198,9 +198,9 @@ def check_toolchain_path(function):
"""
def perform_check(self, *args, **kwargs):
if not exists(self.toolchain_path):
print('[ERROR] Toolchain path does not exist for %s.\n'
print('[ERROR] Toolchain path for %s does not exist.\n'
'Current value: %s' % (self.name, self.toolchain_path))
sys.exit()
sys.exit(-1)
return function(self, *args, **kwargs)
return perform_check