mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 22:50:35 +03: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/"
|
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…
Add table
Add a link
Reference in a new issue