Align no default repo message with other uses

This commit is contained in:
Andy Feller 2025-02-10 17:24:43 -05:00
parent e1d1f21525
commit 81eeaca959

View file

@ -99,13 +99,13 @@ func (r *ResolvedRemotes) BaseRepo(io *iostreams.IOStreams) (ghrepo.Interface, e
cs := io.ColorScheme()
fmt.Fprintf(io.ErrOut,
"%s No default remote repository has been set for this directory.\n",
"%s No default remote repository has been set. To learn more about the default repository, run: gh repo set-default --help\n",
cs.FailureIcon())
fmt.Fprintln(io.Out)
return nil, errors.New(
"please run `gh repo set-default` to select a default remote repository.\nTo learn more about the default repository, run: gh repo set-default --help")
"please run `gh repo set-default` to select a default remote repository.")
}
func (r *ResolvedRemotes) HeadRepos() ([]*api.Repository, error) {