mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-17 14:45:11 -04:00
resources: Always preserve the original transform error
This commit is contained in:
parent
b64fd0577b
commit
9830ca9e31
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user