Module:Favilink Utility: Difference between revisions

clearer error message
mNo edit summary
(clearer error message)
Line 44: Line 44:
if resulttrue == 1 then
if resulttrue == 1 then
if #result > 1 and searchtype == 'ObjectID' then
if #result > 1 and searchtype == 'ObjectID' then
error("There was more than one result with that name![[Category:pages with favilink errors]]")
error("There was more than one result with the name " .. name .. "![[Category:pages with favilink errors]]")
end
end
return result[1]
return result[1]