Changes
make the formatMessage error message more informative, at the risk of including long cfg messages in the error message
local function getMessageVal(match)
match = tonumber(match)
return valArray[match] or error('formatMessage: No value found for key $' .. match.. '. Message was "' .. msg .. '"', 24)
end