45,322
edits
Chrysophylax (talk | contribs) m (Chrysophylax moved page Module:Scripts to Module:scripts without leaving a redirect) |
No edit summary |
||
Line 131: | Line 131: | ||
if type(code) ~= "string" and paramForError then | if type(code) ~= "string" and paramForError then | ||
error("The function getByCode expects a string as its first argument, but received " .. (code == nil and "nil" or "a " .. type(code)) .. ".") | error("The function getByCode expects a string as its first argument, but received " .. (code == nil and "nil" or "a " .. type(code)) .. ".") | ||
end | end | ||
local retval = export.makeObject(code, mw.loadData("Module:scripts/data")[code]) | local retval = export.makeObject(code, mw.loadData("Module:scripts/data")[code]) |