Commit 62eb4f3a authored by Matt Butcher's avatar Matt Butcher Committed by GitHub

Merge pull request #904 from technosophos/fix/895-show-nonexistent-filename

fix(helm): show correct filename on error
parents 2eada264 64d90aa5
...@@ -135,6 +135,7 @@ func locateChartPath(name string) (string, error) { ...@@ -135,6 +135,7 @@ func locateChartPath(name string) (string, error) {
} }
// Try fetching the chart from a remote repo into a tmpdir // Try fetching the chart from a remote repo into a tmpdir
origname := name
if filepath.Ext(name) != ".tgz" { if filepath.Ext(name) != ".tgz" {
name += ".tgz" name += ".tgz"
} }
...@@ -143,9 +144,9 @@ func locateChartPath(name string) (string, error) { ...@@ -143,9 +144,9 @@ func locateChartPath(name string) (string, error) {
if err != nil { if err != nil {
return lname, err return lname, err
} }
fmt.Printf("Fetched %s to %s\n", name, lname) fmt.Printf("Fetched %s to %s\n", origname, lname)
return lname, nil return lname, nil
} }
return name, fmt.Errorf("file %q not found", name) return name, fmt.Errorf("file %q not found", origname)
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment