mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Change error messages
This commit is contained in:
parent
e389b2723e
commit
e41f2a1d7c
@ -228,11 +228,11 @@ func (o *ReplaceOptions) Validate() error {
|
||||
}
|
||||
|
||||
if o.DeleteOptions.ForceDeletion && o.DryRunStrategy != cmdutil.DryRunNone {
|
||||
return fmt.Errorf("dry-run can not be used when --force is set")
|
||||
return fmt.Errorf("--dry-run can not be used when --force is set")
|
||||
}
|
||||
|
||||
if cmdutil.IsFilenameSliceEmpty(o.DeleteOptions.FilenameOptions.Filenames, o.DeleteOptions.FilenameOptions.Kustomize) {
|
||||
return fmt.Errorf("Must specify --filename to replace")
|
||||
return fmt.Errorf("must specify --filename to replace")
|
||||
}
|
||||
|
||||
if len(o.Raw) > 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user