correct error message

This commit is contained in:
Schrottkatze 2024-11-13 16:23:14 +01:00
parent 47c9c685f1
commit 3077365a2e
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc

View file

@ -34,7 +34,7 @@ mod config {
let db_url = env::var("CHATDINGS_DB_URL")
.expect("environment variable CHATDINGS_DB_URL has to exist");
let admin_token_path = env::var("CHATDINGS_ADMIN_TOKEN_PATH")
.expect("environment variable CHATDINGS_ADMIN_TOKEN has to exist");
.expect("environment variable CHATDINGS_ADMIN_TOKEN_PATH has to exist");
let admin_token = fs::read_to_string(&admin_token_path)
.expect(&format!("failed to read '{admin_token_path:?}'"))
.trim()