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:
parent
b6de897f67
commit
61bcd61399
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue