Fix dumpTable function to ensure keys and values are converted to strings before printing
This commit is contained in:
@@ -18,10 +18,10 @@ if not shared.dumpTable then
|
||||
end
|
||||
for k, v in pairs(table) do
|
||||
if type(v) == "table" then
|
||||
print(string.rep(" ", depth) .. k .. ":")
|
||||
print(string.rep(" ", depth) .. tostring(k) .. ":")
|
||||
shared.dumpTable(v, nil, depth + 1)
|
||||
else
|
||||
print(string.rep(" ", depth) .. k .. ": ", v)
|
||||
print(string.rep(" ", depth) .. tostring(k) .. ": " .. tostring(v))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user