view util/xpcall.lua @ 14090:2aeb5dcb36bf 13.0

mod_admin_shell: Make cert index search path relative to config file Otherwise it defaults to something relative to the working directory, wherever that is? Data directory maybe?
author Kim Alvefur <zash@zash.se>
date Sat, 21 Feb 2026 17:05:48 +0100
parents d10957394a3c
children
line wrap: on
line source

local xpcall = xpcall;

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

return {
	xpcall = xpcall;
};