Skip to content

Commit 1f6b82a

Browse files
author
Hisham Muhammad
committed
assert: skip compat53 itself from the stacktrace
1 parent bb24943 commit 1f6b82a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

compat53/module.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ if lua_version < "5.3" then
170170
if cond then
171171
return cond, ...
172172
elseif select('#', ...) > 0 then
173-
error((...), 0)
173+
error((...), 2)
174174
else
175-
error("assertion failed!", 0)
175+
error("assertion failed!", 2)
176176
end
177177
end
178178

0 commit comments

Comments
 (0)