summaryrefslogtreecommitdiffstats
path: root/transform/chain.go
diff options
context:
space:
mode:
Diffstat (limited to 'transform/chain.go')
-rw-r--r--transform/chain.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/transform/chain.go b/transform/chain.go
index 31d1e804b..a5f042d96 100644
--- a/transform/chain.go
+++ b/transform/chain.go
@@ -115,7 +115,7 @@ func (c *Chain) Apply(to io.Writer, from io.Reader) error {
_, _ = io.Copy(tempfile, fb.from)
return herrors.NewFileErrorFromFile(err, filename, hugofs.Os, nil)
}
- return herrors.NewFileError(err, filename).UpdateContent(fb.from, nil)
+ return herrors.NewFileErrorFromName(err, filename).UpdateContent(fb.from, nil)
}
}