Skip to content

Commit cc63e7d

Browse files
committed
minor fix
1 parent fd376d5 commit cc63e7d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/cmd/repo/rename/rename.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ func NewCmdRename(f *cmdutil.Factory, runf func(*RenameOptions) error) *cobra.Co
5858
} else if len(args) == 1 && !opts.flagRepo {
5959
opts.newRepoSelector = args[0]
6060
} else {
61-
return &cmdutil.FlagError{
62-
Err: errors.New("check your parameters")}
61+
return fmt.Errorf("check your parameters")
6362
}
6463
} else {
6564
if !opts.IO.CanPrompt() {

0 commit comments

Comments
 (0)