Jump to content

Module:Documentation: Difference between revisions

make the formatMessage error message more informative, at the risk of including long cfg messages in the error message
m>Mr. Stradivarius
(split the cfg table to Module:Documentation/config)
m>Mr. Stradivarius
(make the formatMessage error message more informative, at the risk of including long cfg messages in the error message)
Line 35: Line 35:
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, 2)
return valArray[match] or error('formatMessage: No value found for key $' .. match .. '. Message was "' .. msg .. '"', 4)
end
end


Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.