Mercurial > prosody-hg
view core/features.lua @ 13078:6da83deb8d7f 0.12
util.error: Fix error on conversion of invalid error stanza, fix #1805
Error stanzas should have an <error> element, but if you pass a
stanza without one to util.error.from_stanza() it triggers an attempt to
index a nil value, which this patch avoids.
In the conditional, it should be safe to assume error_tag is non-nil
since condition can't have those values then.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 19 Apr 2023 11:32:53 +0200 |
| parents | 4bfe658415a0 |
| children | a5a0783e9241 d5f322dd424b |
line wrap: on
line source
local set = require "util.set"; return { available = set.new{ -- mod_bookmarks bundled "mod_bookmarks"; }; };
