summaryrefslogtreecommitdiffstats
path: root/tpl/tplimpl/template_errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/tplimpl/template_errors.go')
-rw-r--r--tpl/tplimpl/template_errors.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/tplimpl/template_errors.go b/tpl/tplimpl/template_errors.go
index a422d77f1..63695c5f6 100644
--- a/tpl/tplimpl/template_errors.go
+++ b/tpl/tplimpl/template_errors.go
@@ -33,13 +33,13 @@ type templateInfo struct {
}
func (info templateInfo) errWithFileContext(what string, err error) error {
- err = errors.Wrapf(err, "file %q: %s:", info.realFilename, what)
+ err = errors.Wrapf(err, what)
err, _ = herrors.WithFileContextForFile(
err,
+ info.realFilename,
info.filename,
info.fs,
- "go-html-template",
herrors.SimpleLineMatcher)
return err