fix: Fix some errors not being logged properly
This commit is contained in:
parent
efa642a14b
commit
659d93fc8f
1 changed files with 7 additions and 1 deletions
|
@ -90,8 +90,14 @@ fn main() -> Result<()> {
|
||||||
.unwrap_or_else(|_| "/var".into())
|
.unwrap_or_else(|_| "/var".into())
|
||||||
.join("kak-highlight");
|
.join("kak-highlight");
|
||||||
|
|
||||||
match cli.command {
|
let res = match cli.command {
|
||||||
Command::Daemon { session } => daemon::handle(runtime_dir, cli.config, session),
|
Command::Daemon { session } => daemon::handle(runtime_dir, cli.config, session),
|
||||||
Command::Request => client::handle(runtime_dir),
|
Command::Request => client::handle(runtime_dir),
|
||||||
|
};
|
||||||
|
|
||||||
|
if let Err(err) = &res {
|
||||||
|
tracing::error!("{:?}", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
res
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue