From 1fea065d0ed7a0c25578940c8dc63d5075e97485 Mon Sep 17 00:00:00 2001 From: kosay Date: Mon, 1 Jul 2024 03:23:47 +0900 Subject: [PATCH] chore(render): add error logging in window action --- src/workers/render/action.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/workers/render/action.rs b/src/workers/render/action.rs index cd504e3f..65325469 100644 --- a/src/workers/render/action.rs +++ b/src/workers/render/action.rs @@ -25,6 +25,7 @@ use crate::{ context::{Context, Namespace}, table::{KubeTable, KubeTableRow}, }, + logger, message::Message, ui::{ event::{Callback, EventResult}, @@ -87,7 +88,9 @@ pub fn window_action(window: &mut Window, rx: &Receiver) -> WindowActio Message::Tick => {} Message::Kube(k) => return WindowAction::UpdateContents(k), - Message::Error(_) => {} + Message::Error(err) => { + logger!(error, "Error: {:?}", err); + } } WindowAction::Continue }