diff --git a/commands/help/help.go b/commands/help/help.go index 541fb0ef96e3891397490dd6509a80aa77e47223..8a17105d9575d0317e49dc5711bbf9ea7ba1bd6f 100644 --- a/commands/help/help.go +++ b/commands/help/help.go @@ -91,6 +91,7 @@ func nestedSuggestFunc(command *cobra.Command, arg string) { } command.Print("\n") + // this funtion does not return any errors _ = RootUsageFunc(command) } diff --git a/commands/mr/create/mr_create.go b/commands/mr/create/mr_create.go index 45b059fcef63e28663fbd1e808552eba509cecd5..0c145f05f4e6182bd16bb712e5260e0311bf46ff 100644 --- a/commands/mr/create/mr_create.go +++ b/commands/mr/create/mr_create.go @@ -106,7 +106,10 @@ func NewCmdCreate(f *cmdutils.Factory, runE func(opts *CreateOpts) error) *cobra repoOverride = repoFromEnv } if repoOverride != "" { - _ = headRepoOverride(opts, repoOverride) + err := headRepoOverride(opts, repoOverride) + if err != nil { + fmt.Fprintf(opts.IO.StdErr, "Could not create recovery file: %v", err) + } } }, RunE: func(cmd *cobra.Command, args []string) error {