fix: Fix some errors not being logged properly

This commit is contained in:
Lucas Schwiderski 2023-04-17 10:37:05 +02:00
parent efa642a14b
commit 659d93fc8f
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8

View file

@ -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
}