Make luac exit with correct error code

develop
lethosor 2015-02-23 18:55:34 -05:00
parent 0aa9866089
commit 5c09423aea
1 changed files with 2 additions and 2 deletions

@ -17,8 +17,8 @@ def main():
continue
full_path = os.path.join(cur, filename)
try:
subprocess.call(['luac' + os.environ.get('LUA_VERSION', ''), '-p', full_path])
except subprocess.CalledProcessError:
assert not subprocess.call(['luac' + os.environ.get('LUA_VERSION', ''), '-p', full_path])
except (subprocess.CalledProcessError, AssertionError):
err = True
sys.exit(int(err))