aboutsummaryrefslogtreecommitdiffhomepage
path: root/transform
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-05-15 11:40:34 +0200
committerBjørn Erik Pedersen <[email protected]>2022-05-15 20:25:25 +0200
commitfc9f315d86e1fe51c3d1eec3b60680113b2e3aa6 (patch)
tree69e8ffc4d84e8f02e0e6f098c27cda9dd3bcc544 /transform
parent4b189d8fd93d3fa326b31d451d5594c917e6c714 (diff)
downloadhugo-fc9f315d86e1fe51c3d1eec3b60680113b2e3aa6.tar.gz
hugo-fc9f315d86e1fe51c3d1eec3b60680113b2e3aa6.zip
Improve SASS errors
Fixes #9897
Diffstat (limited to 'transform')
-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)
}
}