~sircmpwn/hare-dev

hare: strings/template: Give the missing parameter name in the error v2 APPLIED

Haelwenn (lanodan) Monnier: 1
 strings/template: Give the missing parameter name in the error

 1 files changed, 2 insertions(+), 1 deletions(-)
#832922 alpine.yml success
#832923 freebsd.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/hare-dev/patches/34962/mbox | git am -3
Learn more about email & git

[PATCH hare v2] strings/template: Give the missing parameter name in the error Export this patch

From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>

---
 strings/template/template.ha | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/strings/template/template.ha b/strings/template/template.ha
index cc2032e5..8bab5994 100644
--- 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(
-- 
2.35.1
hare/patches: SUCCESS in 1m36s

[strings/template: Give the missing parameter name in the error][0] v2 from [Haelwenn (lanodan) Monnier][1]

[0]: https://lists.sr.ht/~sircmpwn/hare-dev/patches/34962
[1]: mailto:contact+sr.ht@hacktivis.me

✓ #832922 SUCCESS hare/patches/alpine.yml  https://builds.sr.ht/~sircmpwn/job/832922
✓ #832923 SUCCESS hare/patches/freebsd.yml https://builds.sr.ht/~sircmpwn/job/832923
Thanks!

To git@git.sr.ht:~sircmpwn/hare
   78a99de5..3dd57483  master -> master