This commit is contained in:
nora 2022-02-25 15:51:48 +01:00 committed by GitHub
parent 9ffcc23aeb
commit a736960def
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ impl EventHandler for Handler {
#[tokio::main]
async fn main() {
let file_path = std::env::var("CONFIG_PATH").unwrap_or_else(|_| "./config.json".to_string());
let file = match fs::read_to_string(file_path).unwrap_or_else(|err| {
let file = fs::read_to_string(file_path).unwrap_or_else(|err| {
eprintln!("Error reading config file ({file_path}): {err}");
std::process::exit(1);
});