1 Commits

Author SHA1 Message Date
e028209adf assert on unrecognized directive
saves four tokens and is more diagnostic.
2023-01-01 14:11:11 -08:00

View File

@ -62,7 +62,7 @@ function fmt(f, ...)
elseif m == "!" then
out ..= tostring(p)
else
out ..= "(?!:"..m..":"..tostring(p)..")"
assert(false, tostr(m).."is not a formatting directive")
end
end
out ..=sub(s,2)