1
0
Fork 0
mirror of https://codeberg.org/Mo8it/git-webhook-client synced 2024-11-21 11:06:32 +00:00

Debug output for anyhow error

This commit is contained in:
Mo 2022-11-02 16:19:05 +01:00
parent b6de897f67
commit 61bcd61399

View file

@ -20,18 +20,20 @@ fn init() -> Result<Rocket<Build>> {
info!("Starting client");
Ok(rocket::build()
let rocket = rocket::build()
.mount("/", rocket::routes![routes::index])
.mount("/api", rocket::routes![routes::trigger])
.manage(states::DB::new()?)
.manage(states::Config::new(config))
.attach(Template::fairing()))
.attach(Template::fairing());
Ok(rocket)
}
#[rocket::launch]
fn rocket() -> _ {
init().unwrap_or_else(|e| {
eprintln!("{e}");
eprintln!("{e:?}");
process::exit(1);
})
}