Module:Prayer: Difference between revisions

Use printError function
(Add TotH icon to tables)
(Use printError function)
Line 25: Line 25:
local prayer = p.getPrayer(prayerName)
local prayer = p.getPrayer(prayerName)
if prayer == nil then
if prayer == nil then
return "ERROR: No prayer named " .. prayerName .. " exists in the data module[[Category:Pages with script errors]]"
return Shared.printError('No prayer named "' .. prayerName .. '" exists in the data module')
end
end
Line 85: Line 85:
local prayer = p.getPrayer(prayerName)
local prayer = p.getPrayer(prayerName)
if prayer == nil then
if prayer == nil then
return "ERROR: Could not find a prayer named "..prayerName
return Shared.printError('No prayer named "' .. prayerName .. '" exists in the data module')
end
end


Line 110: Line 110:
local prayer = p.getPrayer(prayerName)
local prayer = p.getPrayer(prayerName)
if prayer == nil then
if prayer == nil then
return "ERROR: Could not find a prayer named "..prayerName
return Shared.printError('No prayer named "' .. prayerName .. '" exists in the data module')
end
end


Line 124: Line 124:
local prayer = p.getPrayer(prayerName)
local prayer = p.getPrayer(prayerName)
if prayer == nil then
if prayer == nil then
return "ERROR: Could not find a prayer named "..prayerName
return Shared.printError('No prayer named "' .. prayerName .. '" exists in the data module')
end
end