We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fbf722 commit 64256a0Copy full SHA for 64256a0
1 file changed
src/mods/init.lua
@@ -5,9 +5,8 @@ return setmetatable({ _VERSION = "mods 0.6.0" }, { -- x-release-please-version
5
local modname = "mods." .. tostring(k)
6
local ok, v = pcall(require, modname)
7
if not ok then
8
- error('unknown mods module "' .. tostring(k) .. '"', 2)
+ error(v, 2)
9
end
10
- rawset(t, k, v)
11
- return v
+ return rawset(t, k, v)[k]
12
end,
13
})
0 commit comments