summaryrefslogtreecommitdiffstats
path: root/resource/tocss/scss/tocss.go
diff options
context:
space:
mode:
Diffstat (limited to 'resource/tocss/scss/tocss.go')
-rw-r--r--resource/tocss/scss/tocss.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/resource/tocss/scss/tocss.go b/resource/tocss/scss/tocss.go
index 5ba7793c0..984e14fc2 100644
--- a/resource/tocss/scss/tocss.go
+++ b/resource/tocss/scss/tocss.go
@@ -29,6 +29,7 @@ import (
"github.com/gohugoio/hugo/hugofs"
"github.com/gohugoio/hugo/media"
"github.com/gohugoio/hugo/resource"
+ "github.com/pkg/errors"
)
// Used in tests. This feature requires Hugo to be built with the extended tag.
@@ -165,7 +166,7 @@ func (c *Client) toCSS(options scss.Options, dst io.Writer, src io.Reader) (tocs
res, err = transpiler.Execute(dst, src)
if err != nil {
- return res, fmt.Errorf("SCSS processing failed: %s", err)
+ return res, errors.Wrap(err, "SCSS processing failed")
}
return res, nil