mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
resources: Always preserve the original transform error
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user