Merge pull request #134017 from mochizuki875/standardize_not_found_error_of_kubectl_scale

Standardize not found error message of kubectl scale
This commit is contained in:
Kubernetes Prow Robot
2025-09-11 22:38:13 -07:00
committed by GitHub

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