Skip to content

Commit

Permalink
Merge pull request #4181 from fluxcd/cmd-events-err-fix
Browse files Browse the repository at this point in the history
cmd/events: handle error value
  • Loading branch information
hiddeco authored Aug 22, 2023
2 parents 8214fef + 2a03321 commit 8801031
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/flux/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ func eventsCmdRun(cmd *cobra.Command, args []string) error {
}

rows, err := getRows(ctx, kubeclient, clientListOpts, refListOpts, showNamespace)
if err != nil {
return err
}
if len(rows) == 0 {
if eventArgs.allNamespaces {
logger.Failuref("No events found.")
Expand Down

0 comments on commit 8801031

Please sign in to comment.