mirror of
https://github.com/TangentFoxy/lume.git
synced 2025-07-28 02:52:21 +00:00
Added missing tostring() call on args in lume.trace()
This commit is contained in:
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
|
||||
|
Reference in New Issue
Block a user