diff options
author | Bjørn Erik Pedersen <[email protected]> | 2020-05-16 12:50:57 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2020-05-16 12:51:35 +0200 |
commit | 2fd0a5a6781456e88745b370d12aaf5351a020ff (patch) | |
tree | c21a0f834414922c15c76464798880b37c1cca2d | |
parent | 6e051c053e2b5b8419f357ed8acd177440266d07 (diff) | |
download | hugo-2fd0a5a6781456e88745b370d12aaf5351a020ff.tar.gz hugo-2fd0a5a6781456e88745b370d12aaf5351a020ff.zip |
Improve error message when no Babel installed
-rw-r--r-- | resources/transform.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/transform.go b/resources/transform.go index 6cb257817..98aee3c2a 100644 --- a/resources/transform.go +++ b/resources/transform.go @@ -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) |