1 2 3 4 5 6 7 8 9 10
-- Test interpreter error handling. if arg[1] == "nil" then error(nil) elseif arg[1] == "string" then error("string") elseif arg[1] == "table" then error({}) elseif arg[1] == "metaerror" then error(setmetatable({}, {__tostring=error})) end