mirror of
https://github.com/centau/vide.git
synced 2026-08-20 23:01:37 +00:00
Improve error reporting
This commit is contained in:
parent
14f8d38a35
commit
7bae2517cd
7 changed files with 50 additions and 119 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue