diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2020-04-13 20:04:29 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2020-04-13 20:04:29 -0300 |
| commit | 77e21bd9c4bcad52dc93589abd7e0ae801e4ffe3 (patch) | |
| tree | 9c871195111593d36957f8c464c7769e2e38f6e2 /src | |
| parent | b86f0d72c891bc38a2cff021ae656e4fc8fce7a8 (diff) | |
| download | luarocks-77e21bd9c4bcad52dc93589abd7e0ae801e4ffe3.tar.gz luarocks-77e21bd9c4bcad52dc93589abd7e0ae801e4ffe3.tar.bz2 luarocks-77e21bd9c4bcad52dc93589abd7e0ae801e4ffe3.zip | |
report on errors if running from the binary
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/cmd.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
| 151 | mode = mode .. " (fs_use_modules = true)" | 151 | mode = mode .. " (fs_use_modules = true)" |
| 152 | end | 152 | end |
| 153 | end | 153 | end |
| 154 | if cfg and cfg.is_binary then | ||
| 155 | mode = mode .. " (binary)" | ||
| 156 | end | ||
| 154 | return debug.traceback("LuaRocks "..cfg.program_version.. | 157 | return debug.traceback("LuaRocks "..cfg.program_version.. |
| 155 | " bug (please report at https://github.com/luarocks/luarocks/issues).\n".. | 158 | " bug (please report at https://github.com/luarocks/luarocks/issues).\n".. |
| 156 | mode.."\n"..err, 2) | 159 | mode.."\n"..err, 2) |
