Fix the label selector to selector conversion error string.

The message as it is framed right now does not make any sense for the
end users of our system. It might even lead to confusion. So this is
attempt to make the error message less confusing.
This commit is contained in:
Madhusudan.C.S
2016-02-10 09:43:30 -08:00
parent e7a9f30936
commit 525d7a7732
5 changed files with 12 additions and 12 deletions

View File

@@ -28,7 +28,7 @@ package extensions
// func ScaleFromDeployment(deployment *Deployment) (*Scale, error) {
// selector, err := unversioned.LabelSelectorAsSelector(deployment.Spec.Selector)
// if err != nil {
// return nil, fmt.Errorf("failed to convert label selector to selector: %v", err)
// return nil, fmt.Errorf("invalid label selector: %v", err)
// }
// return &Scale{
// ObjectMeta: api.ObjectMeta{