From 3b9484a02699ecad9f08d15469c29639aa6015e2 Mon Sep 17 00:00:00 2001 From: Michelle Noorali Date: Tue, 5 Apr 2016 12:31:44 -0600 Subject: [PATCH] ref(helm): make repo not found error more clear This addresses issue #563 --- cmd/manager/manager/expander.go | 2 +- pkg/repo/inmem_repo_service.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/manager/manager/expander.go b/cmd/manager/manager/expander.go index 97849f6f9..988ab7d60 100644 --- a/cmd/manager/manager/expander.go +++ b/cmd/manager/manager/expander.go @@ -69,7 +69,7 @@ func (e *expander) getBaseURL() string { func (e *expander) ExpandConfiguration(conf *common.Configuration) (*ExpandedConfiguration, error) { expConf, err := e.expandConfiguration(conf) if err != nil { - return nil, fmt.Errorf("cannot expand configuration:%s\n%v\n", err, conf) + return nil, err } return expConf, nil diff --git a/pkg/repo/inmem_repo_service.go b/pkg/repo/inmem_repo_service.go index 3865f8947..1df1162c6 100644 --- a/pkg/repo/inmem_repo_service.go +++ b/pkg/repo/inmem_repo_service.go @@ -111,7 +111,7 @@ func (rs *inmemRepoService) GetRepoByChartURL(URL string) (IRepo, error) { } if found == nil { - return nil, fmt.Errorf("No repository for url %s", URL) + return nil, fmt.Errorf("No repository found for chart url: %s", URL) } return found, nil