escape codes in errors render v poorly in windows

This commit is contained in:
vilmibm 2020-02-28 10:28:36 -06:00
parent 5d44d9f483
commit bb65bda62f

View file

@ -170,8 +170,8 @@ func repoFork(cmd *cobra.Command, args []string) error {
created_ago := Since(forkedRepo.CreatedAt)
if created_ago > time.Minute {
s.Stop()
fmt.Fprintf(out, redX+" ")
return fmt.Errorf("%s already exists", utils.Bold(ghrepo.FullName(possibleFork)))
fmt.Fprint(out, redX+" ")
return fmt.Errorf("%s already exists", ghrepo.FullName(possibleFork))
}
s.Stop()