1
0
mirror of synced 2026-03-16 16:16:56 +00:00

Merge pull request #4181 from fluxcd/cmd-events-err-fix

cmd/events: handle error value
This commit is contained in:
Hidde Beydals
2023-08-22 13:57:56 +02:00
committed by GitHub

View File

@@ -127,6 +127,9 @@ func eventsCmdRun(cmd *cobra.Command, args []string) error {
} }
rows, err := getRows(ctx, kubeclient, clientListOpts, refListOpts, showNamespace) rows, err := getRows(ctx, kubeclient, clientListOpts, refListOpts, showNamespace)
if err != nil {
return err
}
if len(rows) == 0 { if len(rows) == 0 {
if eventArgs.allNamespaces { if eventArgs.allNamespaces {
logger.Failuref("No events found.") logger.Failuref("No events found.")