mirror of
https://github.com/TangentFoxy/lume.git
synced 2024-11-19 07:04:24 +00:00
Added missing tostring() call on args in lume.trace()
This commit is contained in:
parent
beced85d6b
commit
c2311f9821
3
lume.lua
3
lume.lua
@ -349,7 +349,8 @@ function lume.trace(...)
|
||||
local t = { "[" .. info.short_src .. ":" .. info.currentline .. "]" }
|
||||
for i = 1, select("#", ...) do
|
||||
local x = select(i, ...)
|
||||
t[#t + 1] = (type(x) == "number") and lume.round(x, .01) or (x or "nil")
|
||||
x = (type(x) == "number") and lume.round(x, .01) or (x or "nil")
|
||||
t[#t + 1] = tostring(x)
|
||||
end
|
||||
print(table.concat(t, " "))
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user