From ccbd07bf5d72804e601111951d32d91eaaabca55 Mon Sep 17 00:00:00 2001 From: mpeterv Date: Mon, 28 Mar 2016 17:46:30 +0300 Subject: [PATCH] Use sys.exit instead of raise --- hererocks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hererocks.py b/hererocks.py index c2c49cb..8fc288d 100755 --- a/hererocks.py +++ b/hererocks.py @@ -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", "/?")