view util/xpcall.lua @ 13915:9a69918b5e63 13.0

mod_storage_sql: Assert that serialization of archive:set() payload succeeds Potentially encountered on a production server - the assert() should prevent more subtle failure modes, and help us pinpoint the root cause.
author Matthew Wild <mwild1@gmail.com>
date Tue, 22 Jul 2025 16:34:27 +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;
};