Software /
code /
prosody
File
util/xpcall.lua @ 13131:03f1509a6105
util.serialization: Add a "pretty" preset
This is the config I want 90% of the time when just showing data in the
console or so.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 09 Jun 2023 17:26:38 +0200 |
parent | 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"prosody.util.compat".xpcall; end return { xpcall = xpcall; };