cmd/events: handle error value

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
pull/4181/head
Hidde Beydals 1 year ago
parent 8214fefde6
commit 2a033215a4
No known key found for this signature in database
GPG Key ID: 979F380FC2341744

@ -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.")

Loading…
Cancel
Save