resources: Always preserve the original transform error

上级 b64fd057
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册