From 2fd0a5a6781456e88745b370d12aaf5351a020ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 16 May 2020 12:50:57 +0200 Subject: Improve error message when no Babel installed --- resources/transform.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'resources/transform.go') 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) -- cgit v1.2.3