# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1640955131 -3600
# Node ID 644ca358383766105d8f9d78e6706399ade3c4cd
# Parent  4e61aaa4e9b2c3d57aea21ee26820bd156354b91
util.stanza: Make type error message consistent with others

diff -r 4e61aaa4e9b2 -r 644ca3583837 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");