Software /
code /
prosody
Diff
util/stanza.lua @ 12138:644ca3583837
util.stanza: Make type error message consistent with others
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 31 Dec 2021 13:52:11 +0100 |
parent | 11960:12a3c05aa12d |
child | 12140:1a4c61253932 |
line wrap: on
line diff
--- 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");