Difference between revisions of "Module:Documentation"

No change in size ,  19:39, 1 January 2014
set the proper error level for formatMessage, although it looks like it doesn't work because of the upvalues
>Mr. Stradivarius
(use the cfg key only with formatMessage in order to generate more descriptive error messages)
>Mr. Stradivarius
(set the proper error level for formatMessage, although it looks like it doesn't work because of the upvalues)
Line 37: Line 37:
local function getMessageVal(match)
local function getMessageVal(match)
match = tonumber(match)
match = tonumber(match)
return valArray[match] or error('formatMessage: no value found for key $' .. match .. ' in message cfg.' .. cfgKey, 2)
return valArray[match] or error('formatMessage: no value found for key $' .. match .. ' in message cfg.' .. cfgKey, 4)
end
end


Anonymous user