File

mod_compliance_latest/mod_compliance_latest.lua @ 6206:ac7e2992fe6e

mod_rest: Strip down error payloads to avoid stack overflow When the util.error feature of including a traceback in the error, util.json can't serialize it as it is often self-referential.
author Kim Alvefur <zash@zash.se>
date Sun, 16 Mar 2025 17:04:51 +0100
parent 6113:c0cb43817b7c
child 6211:750d64c47ec6
line wrap: on
line source

local success, err = pcall(function() module:depends("compliance_2023") end)

if not success then
module:log_status( "error", "Error, can't load module: mod_compliance_2023. Is this module downloaded into a folder readable by prosody?" )
return false
end