From ad6a08bdd8d0e756694ba03cdde51291a36fb50c Mon Sep 17 00:00:00 2001 From: carlory Date: Mon, 18 Sep 2017 15:53:13 +0800 Subject: [PATCH] swallow errors inside of a template --- pkg/chartutil/files.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/chartutil/files.go b/pkg/chartutil/files.go index 6ce619e89..4ba5c6f23 100644 --- a/pkg/chartutil/files.go +++ b/pkg/chartutil/files.go @@ -202,7 +202,8 @@ func ToToml(v interface{}) string { e := toml.NewEncoder(b) err := e.Encode(v) if err != nil { - return err.Error() + // Swallow errors inside of a template + return "" } return b.String() }