From d04f34c71a30837be0d3adf6808bc2da2b44016d Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Thu, 28 Apr 2016 12:47:44 +0300 Subject: [PATCH] Exit with error if a LuaRocks batch script is missing --- hererocks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hererocks.py b/hererocks.py index adf72fc..8c18a5e 100755 --- a/hererocks.py +++ b/hererocks.py @@ -1288,6 +1288,8 @@ class LuaRocks(Program): if os.path.exists(script_path): shutil.copy(script_path, os.path.join(opts.location, "bin")) break + else: + sys.exit("Error: can't find {} in {}".format(script, os.path.join(opts.location, "luarocks"))) cmake_generator = self.get_cmake_generator(lua_identifiers)