clean config error

This commit is contained in:
catvayor 2024-06-16 10:05:11 +02:00
parent 7298d8d2b9
commit 0c1f29ac5c

View file

@ -71,7 +71,10 @@ fn clean_expired_evt(
#[launch]
async fn rocket() -> _ {
let rocket = rocket::build();
let config: Config = rocket.figment().extract().unwrap();
let config: Config = rocket
.figment()
.extract()
.unwrap_or_else(|err| panic!("Error parsing config:\n{}", err));
let tracking: Tracking = Arc::new(
config
.teams