Improve error reporting

This commit is contained in:
aaron 2024-07-15 17:37:26 +01:00
parent 14f8d38a35
commit 7bae2517cd
7 changed files with 50 additions and 119 deletions

View file

@ -1,9 +1,7 @@
if not game then script = require "test/relative-string" end
local trace = require(script.Parent.trace)
local function throw(msg): any
error(msg, trace() - 1)
local function VIDE_ASSERT(msg): any
error(msg, 0)
end
return throw
return VIDE_ASSERT