resources: Always preserve the original transform error - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 9830ca9e319f6ce313f4e542a202bd0d0469a9ed
DIR parent b64fd0577b0fb222bea22ae347acb5dd17b2aa04
HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Tue, 19 Oct 2021 20:38:38 +0200
resources: Always preserve the original transform error
Diffstat:
M resources/transform.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/resources/transform.go b/resources/transform.go
@@ -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)