aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-09-26 17:16:34 +0200
committerKim Alvefur <zash@zash.se>2020-09-26 17:16:34 +0200
commited5841e42b9c6b2ae31ba5f9a5767e67e2fb71d4 (patch)
treec95c7a9d17114faf5f603eefb6dc23d9d41db0f5 /util
parenta34633771db29e751058f93b1abbfd6801283364 (diff)
downloadprosody-ed5841e42b9c6b2ae31ba5f9a5767e67e2fb71d4.tar.gz
prosody-ed5841e42b9c6b2ae31ba5f9a5767e67e2fb71d4.zip
util.error: Add well-known field 'extra'
A place for various extra fields and edge cases of the stanza error data model, e.g. the URI field of <gone>
Diffstat (limited to 'util')
-rw-r--r--util/error.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/error.lua b/util/error.lua
index cfb35350..e0b1f9a6 100644
--- a/util/error.lua
+++ b/util/error.lua
@@ -43,6 +43,7 @@ local function new(e, context, registry, source)
type = e.type;
condition = e.condition;
text = e.text;
+ extra = e.extra;
};
else
template = {};
@@ -61,6 +62,7 @@ local function new(e, context, registry, source)
condition = template.condition or "undefined-condition";
text = template.text;
code = template.code;
+ extra = template.extra;
context = context;
source = source;