Software /
code /
prosody
Changeset
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 |
parents | 12137:4e61aaa4e9b2 |
children | 12139:7d6497294d92 |
files | util/stanza.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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");