mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
@@ -260,7 +260,7 @@ func (d Decoder) unmarshalORG(data []byte, v any) error {
|
||||
}
|
||||
|
||||
func toFileError(f Format, data []byte, err error) error {
|
||||
return herrors.NewFileError(err, fmt.Sprintf("_stream.%s", f)).UpdateContent(bytes.NewReader(data), nil)
|
||||
return herrors.NewFileErrorFromName(err, fmt.Sprintf("_stream.%s", f)).UpdateContent(bytes.NewReader(data), nil)
|
||||
}
|
||||
|
||||
// stringifyMapKeys recurses into in and changes all instances of
|
||||
|
Reference in New Issue
Block a user