mirror of
https://github.com/gohugoio/hugo.git
synced 2024-07-04 08:11:55 +00: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/"
|
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)
|
return errors.Wrap(err, msg)
|
||||||
|
|
Loading…
Reference in a new issue