Fix wrong format specifier

This commit is contained in:
dmiller 2023-05-01 17:44:39 +00:00
parent 320523d416
commit b323270b7d

View file

@ -67,7 +67,7 @@ local function _element_to_bson(key, value)
return false, "key must not start with $: ".. key
end
if key:find("%.") then
return false, ("key %r must not contain '.'"):format(tostring(key))
return false, ("key %s must not contain '.'"):format(tostring(key))
end
if type(value) == 'string' then