mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-21 09:34:40 +00:00
bug(kubectl): return resource builder error in scale cmd
This commit is contained in:
parent
d003e4cd9f
commit
8d08480929
@ -229,6 +229,9 @@ func (o *ScaleOptions) RunScale() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(infos) == 0 {
|
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")
|
return fmt.Errorf("no objects passed to scale")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user