Merge pull request #4176 from mattjmcnaughton/mattjmcnaughton/4174-more-specific-name-reuse-error-message

Increase error message specificity for name reuse
pull/3438/merge
Matthew Fisher 7 years ago committed by GitHub
commit e195a9cd11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -190,7 +190,7 @@ func (s *ReleaseServer) uniqName(start string, reuse bool) (string, error) {
s.Log("name %s exists but is not in use, reusing name", start)
return start, nil
} else if reuse {
return "", errors.New("cannot re-use a name that is still in use")
return "", fmt.Errorf("a released named %s is in use, cannot re-use a name that is still in use", start)
}
return "", fmt.Errorf("a release named %s already exists.\nRun: helm ls --all %s; to check the status of the release\nOr run: helm del --purge %s; to delete it", start, start, start)

Loading…
Cancel
Save