8,756
edits
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 | error("There was more than one result with the name " .. name .. "![[Category:pages with favilink errors]]") | ||
end | end | ||
return result[1] | return result[1] |