diff options
Diffstat (limited to 'tpl/tplimpl/template_errors.go')
-rw-r--r-- | tpl/tplimpl/template_errors.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/tplimpl/template_errors.go b/tpl/tplimpl/template_errors.go index 751b4ddbc..a444899aa 100644 --- a/tpl/tplimpl/template_errors.go +++ b/tpl/tplimpl/template_errors.go @@ -53,7 +53,7 @@ func (t templateInfo) resolveType() templateType { func (info templateInfo) errWithFileContext(what string, err error) error { err = fmt.Errorf(what+": %w", err) - fe := herrors.NewFileError(info.realFilename, err) + fe := herrors.NewFileError(err, info.realFilename) f, err := info.fs.Open(info.filename) if err != nil { return err |