Software /
code /
prosody
File
util/xpcall.lua @ 11294:a1939b261f67
prosodyctl: Move UI related calls out of util.prosodyctl
I think this follows the general separation of duties between prosodyctl
and util.prosodyctl better.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 21 Jan 2021 19:04:57 +0100 |
parent | 9561:cfc7b2f7251e |
child | 12975:d10957394a3c |
line wrap: on
line source
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; };