Use sys.exit instead of raise

This commit is contained in:
mpeterv 2016-03-28 17:46:30 +03:00
parent 097ce9a122
commit ccbd07bf5d

View File

@ -858,7 +858,8 @@ class LuaRocks(Program):
lua_binary = os.path.join(opts.location, "bin", exe(lua))
if is_executable(lua_binary):
return get_output(lua_binary, "-e", "print(_VERSION:sub(5))")
raise "Could not locate the LUA binary!"
sys.exit("Error: could not locate Lua binary")
def luarocks_help(self):
return get_output("install.bat", "/?")