diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2024-05-31 14:01:44 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-05-31 14:01:44 -0300 |
commit | 1e0c7eb2093151f316280bc6f5b703c2d6ddb91c (patch) | |
tree | 8d7e3e07c4992e97c1d3aed0e1c11cce6bb071eb | |
parent | dc0af58cfccdf21192c91ed358cd732bad8181da (diff) | |
download | luarocks-1e0c7eb2093151f316280bc6f5b703c2d6ddb91c.tar.gz luarocks-1e0c7eb2093151f316280bc6f5b703c2d6ddb91c.tar.bz2 luarocks-1e0c7eb2093151f316280bc6f5b703c2d6ddb91c.zip |
fix(config): do not crash if err_files is empty for some reason
Closes #1652.
-rw-r--r-- | src/luarocks/cmd/config.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/cmd/config.lua b/src/luarocks/cmd/config.lua index 9c1911d6..d67711a0 100644 --- a/src/luarocks/cmd/config.lua +++ b/src/luarocks/cmd/config.lua | |||
@@ -253,7 +253,7 @@ local function report_on_lua_libdir_config(value, lua_version) | |||
253 | util.printerr() | 253 | util.printerr() |
254 | util.warning((err:gsub(" You can use.*", ""))) | 254 | util.warning((err:gsub(" You can use.*", ""))) |
255 | util.printerr("Tried:") | 255 | util.printerr("Tried:") |
256 | for _, l in pairs(err_files) do | 256 | for _, l in pairs(err_files or {}) do |
257 | for _, d in ipairs(l) do | 257 | for _, d in ipairs(l) do |
258 | util.printerr("\t" .. d) | 258 | util.printerr("\t" .. d) |
259 | end | 259 | end |