From 659d93fc8f33295d313a4fcf2208b9f5cc50eab3 Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Mon, 17 Apr 2023 10:37:05 +0200 Subject: [PATCH] fix: Fix some errors not being logged properly --- src/main.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index dd50bc1..db416ea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -90,8 +90,14 @@ fn main() -> Result<()> { .unwrap_or_else(|_| "/var".into()) .join("kak-highlight"); - match cli.command { + let res = match cli.command { Command::Daemon { session } => daemon::handle(runtime_dir, cli.config, session), Command::Request => client::handle(runtime_dir), + }; + + if let Err(err) = &res { + tracing::error!("{:?}", err) } + + res }