1
0
mirror of synced 2026-02-06 19:05:55 +00:00

cmd/events: handle error value

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
Hidde Beydals
2023-08-22 13:39:39 +02:00
parent 8214fefde6
commit 2a033215a4

View File

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