Use sys.exit instead of raise
This commit is contained in:
parent
097ce9a122
commit
ccbd07bf5d
@ -858,7 +858,8 @@ class LuaRocks(Program):
|
|||||||
lua_binary = os.path.join(opts.location, "bin", exe(lua))
|
lua_binary = os.path.join(opts.location, "bin", exe(lua))
|
||||||
if is_executable(lua_binary):
|
if is_executable(lua_binary):
|
||||||
return get_output(lua_binary, "-e", "print(_VERSION:sub(5))")
|
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):
|
def luarocks_help(self):
|
||||||
return get_output("install.bat", "/?")
|
return get_output("install.bat", "/?")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user