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 | 937336bacd199e30b999831cb71c6255a35cb06f (patch) | |
tree | 3fb96e5d79bad784da213a96f365e137e5fd9163 /util | |
parent | 43d3c3ab81aaaad157050c7ae7690551d0d4dec0 (diff) | |
download | prosody-937336bacd199e30b999831cb71c6255a35cb06f.tar.gz prosody-937336bacd199e30b999831cb71c6255a35cb06f.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)(); |