From 72be6f822941c431c51343cf00c4280ec132e00c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 31 Dec 2021 13:52:11 +0100 Subject: util.stanza: Make type error message consistent with others --- util/stanza.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/stanza.lua') diff --git a/util/stanza.lua b/util/stanza.lua index a6bc51c4..23240301 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -65,7 +65,7 @@ end 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"); -- cgit v1.2.3