Skip to content

Commit

Permalink
chore(render): add error logging in window action
Browse files Browse the repository at this point in the history
  • Loading branch information
sarub0b0 committed Jun 30, 2024
1 parent 8c31343 commit 1fea065
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/workers/render/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use crate::{
context::{Context, Namespace},
table::{KubeTable, KubeTableRow},
},
logger,
message::Message,
ui::{
event::{Callback, EventResult},
Expand Down Expand Up @@ -87,7 +88,9 @@ pub fn window_action(window: &mut Window, rx: &Receiver<Message>) -> WindowActio

Message::Tick => {}
Message::Kube(k) => return WindowAction::UpdateContents(k),
Message::Error(_) => {}
Message::Error(err) => {
logger!(error, "Error: {:?}", err);
}
}
WindowAction::Continue
}
Expand Down

0 comments on commit 1fea065

Please sign in to comment.