Module:UserLinks/sandbox: Difference between revisions

Content deleted Content added
tweak error message
add missing error check to p.single
Line 427:
local linkFunctions = p.getLinkFunctions()
local linkFunction = linkFunctions[code]
if not linkFunction then
return makeWikitextError(
'"' .. code .. '" is not a valid link code|Not a valid link code',
options.isDemo
)
end
local success, result = pcall(linkFunction, snippets)
if success then