Skip to content

Commit

Permalink
Addressed #519
Browse files Browse the repository at this point in the history
no more panic.
  • Loading branch information
daveshanley committed Aug 5, 2024
1 parent 879e1ca commit ca4b96e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ func GetDashboardCommand() *cobra.Command {
specInfo.Generated = vacuumReport.Generated
}

if len(resultSet.Results) <= 0 {
pterm.Println()
pterm.Success.Println("There is nothing to see, no results found - well done!")
pterm.Println()
return nil
}

dash := cui.CreateDashboard(resultSet, specIndex, specInfo)
dash.Version = Version
return dash.Render()
Expand Down

0 comments on commit ca4b96e

Please sign in to comment.