mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #128051 from googs1025/kubectl/fix/resourcebuilder
bug(kubectl): return resource builder error in scale cmd
This commit is contained in:
commit
9a0b07d38c
@ -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 New Issue
Block a user