util/xpcall.lua
author Kim Alvefur <zash@zash.se>
Sun, 23 Oct 2022 16:22:12 +0200
branch0.12
changeset 12792 3835c397b129
parent 9564 cfc7b2f7251e
child 12979 d10957394a3c
permissions -rw-r--r--
mod_admin_shell: Ensure available connection for column 'secure' Similar to #1777

local xpcall = xpcall;

if select(2, xpcall(function (x) return x end, function () end,  "test")) ~= "test" then
	xpcall = require"util.compat".xpcall;
end

return {
	xpcall = xpcall;
};