aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-31 13:52:11 +0100
committerKim Alvefur <zash@zash.se>2021-12-31 13:52:11 +0100
commit72be6f822941c431c51343cf00c4280ec132e00c (patch)
tree17102728ee6ac2414387b4afd4c8388363eeafae /util
parent64c385c9f727e2002638d8e214c40a83ce55e55e (diff)
downloadprosody-72be6f822941c431c51343cf00c4280ec132e00c.tar.gz
prosody-72be6f822941c431c51343cf00c4280ec132e00c.zip
util.stanza: Make type error message consistent with others
Diffstat (limited to 'util')
-rw-r--r--util/stanza.lua2
1 files changed, 1 insertions, 1 deletions
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");