commit 1516fa9585790e215b3465eb23df79b1d239de5e parent 6ad2877189712762bd5dfc54eb87674b4779e7ca Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Sat, 27 Aug 2022 19:09:55 +0200 strings/template: Give the missing parameter name in the error Diffstat:
M | strings/template/template.ha | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/strings/template/template.ha b/strings/template/template.ha @@ -103,7 +103,8 @@ fn get_param(name: str, params: param...) fmt::formattable = { return params[i].1; }; }; - abort("strings::tmpl: required parameter was not provided"); + fmt::errorfln("strings::template: required parameter ${} was not provided", name)!; + abort(); }; fn parse_variable(