aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-10-03 16:22:56 +0200
committerKim Alvefur <zash@zash.se>2020-10-03 16:22:56 +0200
commitf875b6f99c458a0e1d6a6e784761ed255f369b22 (patch)
tree3fb96e5d79bad784da213a96f365e137e5fd9163 /util
parent7eb15b0b3fd49a58656e510866349c9725cd27cc (diff)
downloadprosody-f875b6f99c458a0e1d6a6e784761ed255f369b22.tar.gz
prosody-f875b6f99c458a0e1d6a6e784761ed255f369b22.zip
util.xml: Fix float formatting of line and columns in error (on Lua 5.3+)
Diffstat (limited to 'util')
-rw-r--r--util/xml.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xml.lua b/util/xml.lua
index dac3f6fe..f826b6bf 100644
--- a/util/xml.lua
+++ b/util/xml.lua
@@ -71,7 +71,7 @@ local parse_xml = (function()
if ok then
return stanza.tags[1];
else
- return ok, err.." (line "..line..", col "..col..")";
+ return ok, ("%s (line %d, col %d))"):format(err, line, col);
end
end;
end)();