standardize not found error message of kubectl scale

Kubernetes-commit: bb21080626de5de93e6820e6e22ff5b3dee200f4
This commit is contained in:
mochizuki875 2025-09-11 15:45:36 +00:00 committed by Kubernetes Publisher
parent 8f715d8530
commit 848d63d832

View file

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