From 77e21bd9c4bcad52dc93589abd7e0ae801e4ffe3 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 13 Apr 2020 20:04:29 -0300 Subject: report on errors if running from the binary --- src/luarocks/cmd.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/luarocks/cmd.lua b/src/luarocks/cmd.lua index 3130373f..6c0363a2 100644 --- a/src/luarocks/cmd.lua +++ b/src/luarocks/cmd.lua @@ -151,6 +151,9 @@ local function error_handler(err) mode = mode .. " (fs_use_modules = true)" end end + if cfg and cfg.is_binary then + mode = mode .. " (binary)" + end return debug.traceback("LuaRocks "..cfg.program_version.. " bug (please report at https://github.com/luarocks/luarocks/issues).\n".. mode.."\n"..err, 2) -- cgit v1.2.3-55-g6feb