We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 202d8e9 commit dfdc85eCopy full SHA for dfdc85e
1 file changed
lua/lazy/core/plugin.lua
@@ -156,7 +156,11 @@ function Spec:import(spec)
156
load = function()
157
local mod, err = loadfile(modpath)
158
if mod then
159
- return mod()
+ local ret, foo = mod()
160
+ if foo then
161
+ return nil, "Spec module returned more than one value. Expected a single value."
162
+ end
163
+ return ret
164
else
165
return nil, err
166
end
0 commit comments