mirror of
https://github.com/Noratrieb/killjoy-turret.git
synced 2026-01-14 14:45:01 +01:00
fix
This commit is contained in:
parent
9ffcc23aeb
commit
a736960def
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue