Log main error as error!()
This commit is contained in:
parent
441855378b
commit
b9a5cddc42
1 changed files with 5 additions and 2 deletions
|
|
@ -198,8 +198,11 @@ async fn run() -> somehow::Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> somehow::Result<()> {
|
async fn main() {
|
||||||
// Rust-analyzer struggles analyzing code in this function, so the actual
|
// Rust-analyzer struggles analyzing code in this function, so the actual
|
||||||
// code lives in a different function.
|
// code lives in a different function.
|
||||||
run().await
|
if let Err(e) = run().await {
|
||||||
|
error!("{e:?}");
|
||||||
|
process::exit(1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue