Module:Pets: Difference between revisions

m
Include script errors category
(getPetSidebar: Gracefully handle case where pet could not be found)
m (Include script errors category)
Line 198: Line 198:
local pet = p.getPet(name)
local pet = p.getPet(name)
if pet == nil then
if pet == nil then
return 'ERROR: Could not find pet with name ' .. (name or 'Unknown')
return 'ERROR: Could not find pet with name ' .. (name or 'Unknown') .. '[[Category:Pages with script errros]]'
end
end
local effect = (args.effect ~= nil and args.effect ~= '') and args.effect or p._getPetEffect(pet)
local effect = (args.effect ~= nil and args.effect ~= '') and args.effect or p._getPetEffect(pet)