mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
fix bad formatt string (thanks @vortix)
This commit is contained in:
parent
9b94422966
commit
2323ff7f57
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ end
|
||||||
|
|
||||||
_errorcodes.tostring = function(command)
|
_errorcodes.tostring = function(command)
|
||||||
if(type(command) == 'string') then
|
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
|
end
|
||||||
if(type(command) == 'number') then
|
if(type(command) == 'number') then
|
||||||
return ("%s (%d)"):format(_reverse_lookup[ tostring(command)] or "ERROR UNDEFINED!", command)
|
return ("%s (%d)"):format(_reverse_lookup[ tostring(command)] or "ERROR UNDEFINED!", command)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue