Skip to content

Commit

Permalink
Update install.go
Browse files Browse the repository at this point in the history
Feedback from PR

Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
stan-sz committed Apr 11, 2022
1 parent 660e4ff commit a7e4ae7
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions pkg/action/install.go
Expand Up @@ -757,14 +757,7 @@ func (c *ChartPathOptions) LocateChart(name string, settings *cli.EnvSettings) (
return filename, err
}
return lname, nil
} else if settings.Debug {
return filename, err
}

atVersion := ""
if version != "" {
atVersion = fmt.Sprintf(" at version %q", version)
} else {
return "", err
}

return filename, errors.Errorf("failed to download %q%s because of %s", name, atVersion, err)
}

0 comments on commit a7e4ae7

Please sign in to comment.