mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
parent
7930d2132a
commit
d1661b823a
23 changed files with 444 additions and 236 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue