contains the origin error in error message.

Signed-off-by: zwwhdls <zwwhdls@hotmail.com>
pull/7234/head
zwwhdls 6 years ago
parent 94621a09f2
commit a1fa491f07

@ -222,7 +222,7 @@ func (i *Install) Run(chrt *chart.Chart, vals map[string]interface{}) (*release.
if chrt.Values == nil && reflect.DeepEqual(vals, map[string]interface{}{}) { if chrt.Values == nil && reflect.DeepEqual(vals, map[string]interface{}{}) {
rel.SetStatus(release.StatusFailed, fmt.Sprint("failed to render resource: lack of values.yaml")) rel.SetStatus(release.StatusFailed, fmt.Sprint("failed to render resource: lack of values.yaml"))
// Return a release with partial data so that the client can show debugging information. // Return a release with partial data so that the client can show debugging information.
return rel, errors.New("failed to render resource: lack of values.yaml") return rel, errors.Wrap(err,"failed to render resource: lack of values.yaml")
} }
rel.SetStatus(release.StatusFailed, fmt.Sprintf("failed to render resource: %s", err.Error())) rel.SetStatus(release.StatusFailed, fmt.Sprintf("failed to render resource: %s", err.Error()))
// Return a release with partial data so that the client can show debugging information. // Return a release with partial data so that the client can show debugging information.

Loading…
Cancel
Save