aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 67df74e..ff6357f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -11,7 +11,7 @@ use check::{check_loop, Check};
use chrono::{DateTime, Utc};
use mail::MailConfig;
use serde::Deserialize;
-use std::{collections::BTreeMap, net::SocketAddr, sync::Arc};
+use std::{collections::BTreeMap, net::SocketAddr, process::exit, sync::Arc};
use tokio::{fs::read_to_string, sync::RwLock};
use web::send_html_page;
@@ -21,7 +21,8 @@ pub static GLOBAL_ERROR: RwLock<Option<anyhow::Error>> = RwLock::const_new(None)
async fn main() {
env_logger::init_from_env("LOG");
if let Err(e) = run().await {
- error!("{e:?}")
+ error!("{e:?}");
+ exit(1);
}
}