aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2026-02-01 18:20:02 -0300
committerHisham Muhammad <hisham@gobolinux.org>2026-02-01 18:20:02 -0300
commitacf1f47e7f1b1ecbc147e41cae51ddfd06ad898d (patch)
tree547812b1a9a0590f16a1d988fbb8a4270cf948e7 /src
parente5821e9a6fd94aba56e28f0282f00748cd864903 (diff)
downloadluarocks-acf1f47e7f1b1ecbc147e41cae51ddfd06ad898d.tar.gz
luarocks-acf1f47e7f1b1ecbc147e41cae51ddfd06ad898d.tar.bz2
luarocks-acf1f47e7f1b1ecbc147e41cae51ddfd06ad898d.zip
assert: skip compat53 itself from the stacktrace
Diffstat (limited to 'src')
-rw-r--r--src/compat53/module.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compat53/module.lua b/src/compat53/module.lua
index 52b1dd63..b580e536 100644
--- a/src/compat53/module.lua
+++ b/src/compat53/module.lua
@@ -170,9 +170,9 @@ if lua_version < "5.3" then
170 if cond then 170 if cond then
171 return cond, ... 171 return cond, ...
172 elseif select('#', ...) > 0 then 172 elseif select('#', ...) > 0 then
173 error((...), 0) 173 error((...), 2)
174 else 174 else
175 error("assertion failed!", 0) 175 error("assertion failed!", 2)
176 end 176 end
177 end 177 end
178 178