mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
@@ -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
|
||||
|
Reference in New Issue
Block a user