From a1fa491f07a2f5094d932e2229f8c258058efa57 Mon Sep 17 00:00:00 2001 From: zwwhdls Date: Sun, 15 Dec 2019 16:04:29 +0800 Subject: [PATCH] contains the origin error in error message. Signed-off-by: zwwhdls --- pkg/action/install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/action/install.go b/pkg/action/install.go index aa19c3bbe..a6b1a12da 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -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{}{}) { 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 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())) // Return a release with partial data so that the client can show debugging information.