Update install.go

Feedback from PR

Signed-off-by: GitHub <noreply@github.com>
pull/10834/head
stan-sz 3 years ago committed by GitHub
parent 660e4ffe7a
commit a7e4ae752a

@ -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)
}

Loading…
Cancel
Save