From 0c1f29ac5c686ce8e49fea01f8d710a4f3dac237 Mon Sep 17 00:00:00 2001 From: catvayor Date: Sun, 16 Jun 2024 10:05:11 +0200 Subject: [PATCH] clean config error --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 968a8a9..d5ad1ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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