Skip to content

Commit

Permalink
saner error message
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdata committed Feb 26, 2024
1 parent e011129 commit 02de6f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 02de6f2

Please sign in to comment.