Skip to content

Commit

Permalink
Improve error message when no Babel installed
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed May 16, 2020
1 parent 6e051c0 commit 2fd0a5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,8 @@ func (r *resourceAdapter) transform(publish, setContent bool) error {
errMsg = ". Check your PostCSS installation; install with \"npm install postcss-cli\". See https://gohugo.io/hugo-pipes/postcss/"
} else if tr.Key().Name == "tocss" {
errMsg = ". Check your Hugo installation; you need the extended version to build SCSS/SASS."
} else if tr.Key().Name == "babel" {
errMsg = ". You need to install Babel, see https://gohugo.io/hugo-pipes/babel/"
}

return errors.New(msg + errMsg)
Expand Down

0 comments on commit 2fd0a5a

Please sign in to comment.