Module:YouTubeSubscribers: Difference between revisions

Content deleted Content added
Undid revision 1142295103 by BrokenSegue (talk)
change how sub count errors work
Tag: Reverted
Line 199:
end
return nil
end
 
function returnError(eMessage)
return "{{error|" .. eMessage .. "}} [[Category:Pages with YouTubeSubscribers module errors]]"
end
 
Line 249 ⟶ 253:
 
function p.subCountNice( frame )
local subCountstatus, obj = pcall(p.subCount(, frame)
if status then
return "{{Format price|" .. subCountobj .. "}}"
else
return returnError(obj)
end
end
 
return p