Change error messages

Kubernetes-commit: e41f2a1d7c06a1fd49bc5055fba7e0437ecaec0e
This commit is contained in:
Arda Güçlü 2022-07-07 15:05:17 +03:00 committed by Kubernetes Publisher
parent bdaa26ce9e
commit 9a8dad8efc
1 changed files with 2 additions and 2 deletions

View File

@ -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 {