Fix error handling in TscFile:_getLabelPositionRange()

Fixes #180
This commit is contained in:
duncathan salt 2024-12-18 15:24:06 -06:00 committed by GitHub
parent 08f0c555f5
commit 1a632137db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,7 +112,7 @@ function TscFile:_getLabelPositionRange(label)
end
if labelStart == nil then
error(("%s: Could not find label: %s"):format(self.mapName, label))
error(("Could not find label: %s"):format(label))
labelStart = 1
end