diff options
Diffstat (limited to 'transform')
-rw-r--r-- | transform/chain.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/transform/chain.go b/transform/chain.go index 2d70b9356..31d1e804b 100644 --- a/transform/chain.go +++ b/transform/chain.go @@ -113,9 +113,9 @@ func (c *Chain) Apply(to io.Writer, from io.Reader) error { filename = tempfile.Name() defer tempfile.Close() _, _ = io.Copy(tempfile, fb.from) - return herrors.NewFileErrorFromFile(err, filename, filename, hugofs.Os, nil) + return herrors.NewFileErrorFromFile(err, filename, hugofs.Os, nil) } - return herrors.NewFileError(filename, err).UpdateContent(fb.from, nil) + return herrors.NewFileError(err, filename).UpdateContent(fb.from, nil) } } |