fix bad formatt string (thanks @vortix)

This commit is contained in:
iceman1001 2020-11-12 19:33:49 +01:00
parent 9b94422966
commit 2323ff7f57

View file

@ -68,7 +68,7 @@ end
_errorcodes.tostring = function(command)
if(type(command) == 'string') then
return ("%s (%d)"):format(_reverse_lookup[command] or "ERROR UNDEFINED!", command)
return ("%s (%s)"):format(_reverse_lookup[command] or "ERROR UNDEFINED!", command)
end
if(type(command) == 'number') then
return ("%s (%d)"):format(_reverse_lookup[ tostring(command)] or "ERROR UNDEFINED!", command)