aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/command_line.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/command_line.lua b/src/luarocks/command_line.lua
index 50502257..ff8699ff 100644
--- a/src/luarocks/command_line.lua
+++ b/src/luarocks/command_line.lua
@@ -15,7 +15,7 @@ local function die(message)
15 15
16 local ok, err = pcall(util.run_scheduled_functions) 16 local ok, err = pcall(util.run_scheduled_functions)
17 if not ok then 17 if not ok then
18 util.printerr("\nLuaRocks "..cfg.program_version.." internal bug (please report at luarocks-developers@lists.luaforge.net):\n"..err) 18 util.printerr("\nLuaRocks "..cfg.program_version.." internal bug (please report at luarocks-developers@lists.sourceforge.net):\n"..err)
19 end 19 end
20 util.printerr("\nError: "..message) 20 util.printerr("\nError: "..message)
21 os.exit(1) 21 os.exit(1)
@@ -142,7 +142,7 @@ function run_command(...)
142 if commands[command] then 142 if commands[command] then
143 local xp, ok, err = xpcall(function() return commands[command].run(unpack(args)) end, function(err) 143 local xp, ok, err = xpcall(function() return commands[command].run(unpack(args)) end, function(err)
144 die(debug.traceback("LuaRocks "..cfg.program_version 144 die(debug.traceback("LuaRocks "..cfg.program_version
145 .." bug (please report at luarocks-developers@lists.luaforge.net).\n" 145 .." bug (please report at luarocks-developers@lists.sourceforge.net).\n"
146 ..err, 2)) 146 ..err, 2))
147 end) 147 end)
148 if xp and (not ok) then 148 if xp and (not ok) then