util.stanza: Make type error message consistent with others
authorKim Alvefur <zash@zash.se>
Fri, 31 Dec 2021 13:52:11 +0100
changeset 12142 644ca3583837
parent 12141 4e61aaa4e9b2
child 12143 7d6497294d92
util.stanza: Make type error message consistent with others
util/stanza.lua
--- a/util/stanza.lua	Fri Dec 31 00:59:10 2021 +0100
+++ b/util/stanza.lua	Fri Dec 31 13:52:11 2021 +0100
@@ -65,7 +65,7 @@
 local function check_attr(attr)
 	if attr ~= nil then
 		if type(attr) ~= "table" then
-			error("invalid attributes, expected table got "..type(attr));
+			error("invalid attributes: expected table, got "..type(attr));
 		end
 		for k, v in pairs(attr) do
 			check_name(k, "attribute");