Fixes attempt to index a nil value

This commit is contained in:
Matteo Biscosi 2024-05-02 11:43:22 -04:00
parent f63d6736f9
commit 64a9ffd45d

View file

@ -87,7 +87,7 @@ function newParser()
error("XmlParser: nothing to close with " .. label)
end
if toclose:name() ~= label then
error("XmlParser: trying to close " .. toclose.name .. " with " .. label)
error("XmlParser: trying to close " .. toclose:name() .. " with " .. label)
end
top:addChild(toclose)
end