From fc9f315d86e1fe51c3d1eec3b60680113b2e3aa6 Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Sun, 15 May 2022 11:40:34 +0200 Subject: Improve SASS errors Fixes #9897 --- transform/chain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'transform') 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) } } -- cgit v1.2.3