mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-31 22:41:53 +02:00
@@ -554,7 +554,7 @@ func (t *templateHandler) addFileContext(templ tpl.Template, inerr error) error
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
fe := herrors.NewFileError(inErr, info.realFilename)
|
||||
fe := herrors.NewFileErrorFromName(inErr, info.realFilename)
|
||||
fe.UpdateContent(f, lineMatcher)
|
||||
|
||||
if !fe.ErrorContext().Position.IsValid() {
|
||||
|
Reference in New Issue
Block a user