16,985
edits
No edit summary |
(getTriangleAttribute: Fix error handling) |
||
Line 617: | Line 617: | ||
local mode = GameData.getEntityByName('gamemodes', modeName) | local mode = GameData.getEntityByName('gamemodes', modeName) | ||
if mode == nil then | if mode == nil then | ||
error("Invalid gamemode '" .. | error("Invalid gamemode '" .. modeName .. "'", 2) | ||
end | end | ||