mirror of
https://github.com/kubernetes/kubectl.git
synced 2026-05-28 04:35:50 -04:00
bug(kubectl): return resource builder error in scale cmd
Kubernetes-commit: 8d084809296a845f01a0a1177bb0bf825f498d84
This commit is contained in:
parent
86e0d9e48c
commit
c90e4a0fd8
1 changed files with 3 additions and 0 deletions
|
|
@ -229,6 +229,9 @@ func (o *ScaleOptions) RunScale() error {
|
|||
}
|
||||
|
||||
if len(infos) == 0 {
|
||||
if infoErr != nil {
|
||||
return fmt.Errorf("no objects passed to scale %w", infoErr)
|
||||
}
|
||||
return fmt.Errorf("no objects passed to scale")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue