fix bad formatt string (thanks @vortix)
This commit is contained in:
1 parent
9b94422966
commit
2323ff7f57
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user