We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b2185f commit 6ecbf28Copy full SHA for 6ecbf28
lua/themepark.lua
@@ -336,7 +336,11 @@ end
336
-- ---------------------------------------------------------------------------
337
338
function themepark:get_table(table_name)
339
- return self.tables[table_name]
+ local dbtable = self.tables[table_name]
340
+ if not dbtable then
341
+ error("Unknown table '" .. table_name .. "'", 2)
342
+ end
343
+ return dbtable
344
end
345
346
function themepark:add_debug_info(attrs, tags, dbgdata)
0 commit comments