correct error message
This commit is contained in:
parent
47c9c685f1
commit
3077365a2e
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue