Skip to content

Commit

Permalink
Fixed #169
Browse files Browse the repository at this point in the history
  • Loading branch information
daveshanley committed Feb 14, 2025
1 parent 00bb20a commit 99fa3e9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,13 @@ func GetSummaryCommand() *cobra.Command {
case err := <-errorChan:
if err.Fatal {
if !noColorFlag {
spinner.Fail(fmt.Sprintf("Stopped: %s", err.Message))
spinner.Stop()
if spinner != nil {
spinner.Fail(fmt.Sprintf("Stopped: %s", err.Message))
spinner.Stop()
} else {
pterm.Error.Printf("Stopped: %s", err.Message)
}

}
} else {
warnings = append(warnings, err.Message)
Expand Down

0 comments on commit 99fa3e9

Please sign in to comment.