diff --git a/src/main.rs b/src/main.rs index ef18a72..6b177db 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,6 +17,13 @@ const STATUS_FILE: &str = "status.json"; #[tokio::main] async fn main() { + if env::var("consumer_key").is_err() { + panic!("env var consumer_key must be set"); + } + if env::var("consumer_secret").is_err() { + panic!("env var consumer_secret must be set"); + } + let app = Router::new() .route("/status.json", get(root)) .route("/api/update", post(the_doors));