From 02de6f2d14617384d22eb431895f856aea34b38b Mon Sep 17 00:00:00 2001 From: Johan Lindh Date: Mon, 26 Feb 2024 09:23:51 +0100 Subject: [PATCH] saner error message --- template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.go b/template.go index 590d332..5fcd752 100644 --- a/template.go +++ b/template.go @@ -26,7 +26,7 @@ func (rq *Request) MustTemplate(v any) (tp *template.Template) { tp = rq.Jaws.Lookup(v) } if tp == nil { - panic(fmt.Errorf("expected template or string, not %T(%v)", v, v)) + panic(fmt.Errorf("template not found: %T(%v)", v, v)) } return }