resources: Always preserve the original transform error

This commit is contained in:
Bjørn Erik Pedersen 2021-10-19 20:38:38 +02:00
parent b64fd0577b
commit 9830ca9e31
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -422,7 +422,7 @@ func (r *resourceAdapter) transform(publish, setContent bool) error {
errMsg = ". You need to install Babel, see https://gohugo.io/hugo-pipes/babel/"
}
return errors.New(msg + errMsg)
return errors.Wrap(err, msg+errMsg)
}
return errors.Wrap(err, msg)