diff options
author | Kim Alvefur <zash@zash.se> | 2020-10-03 16:22:56 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-10-03 16:22:56 +0200 |
commit | f875b6f99c458a0e1d6a6e784761ed255f369b22 (patch) | |
tree | 3fb96e5d79bad784da213a96f365e137e5fd9163 /util | |
parent | 7eb15b0b3fd49a58656e510866349c9725cd27cc (diff) | |
download | prosody-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.lua | 2 |
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)(); |