Diff

util/error.lua @ 11081:0b68697450c5

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>
author Kim Alvefur <zash@zash.se>
date Sat, 26 Sep 2020 17:16:34 +0200
parent 11080:ba77c142c9b1
child 11089:35d2260644d9
line wrap: on
line diff
--- a/util/error.lua	Fri Sep 25 16:39:22 2020 +0100
+++ b/util/error.lua	Sat Sep 26 17:16:34 2020 +0200
@@ -43,6 +43,7 @@
 				type = e.type;
 				condition = e.condition;
 				text = e.text;
+				extra = e.extra;
 			};
 		else
 			template = {};
@@ -61,6 +62,7 @@
 		condition = template.condition or "undefined-condition";
 		text = template.text;
 		code = template.code;
+		extra = template.extra;
 
 		context = context;
 		source = source;