mirror of
https://github.com/kubernetes/kubectl.git
synced 2026-05-28 04:35:50 -04:00
standardize not found error message of kubectl scale
Kubernetes-commit: bb21080626de5de93e6820e6e22ff5b3dee200f4
This commit is contained in:
parent
8f715d8530
commit
848d63d832
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ func (o *ScaleOptions) RunScale() error {
|
|||
|
||||
if len(infos) == 0 {
|
||||
if infoErr != nil {
|
||||
return fmt.Errorf("no objects passed to scale %w", infoErr)
|
||||
return infoErr
|
||||
}
|
||||
return fmt.Errorf("no objects passed to scale")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue