mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 22:40:35 +00:00
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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user