mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
resources: Always preserve the original transform error
This commit is contained in:
parent
b64fd0577b
commit
9830ca9e31
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue