From e20e487119611c5983f7a187293ad54ab08a0e86 Mon Sep 17 00:00:00 2001 From: AINDUSTRIES Date: Fri, 20 Sep 2024 19:25:59 +0200 Subject: [PATCH] quick fix --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 4ade1f6..fb12c67 100644 --- a/src/main.rs +++ b/src/main.rs @@ -226,7 +226,7 @@ fn get_settings() -> Settings { #[cfg(target_os = "linux")] #[tokio::main] async fn main() { - let current_directory = env::current_dir().expect("Could not get app directory."); + let current_directory = env::current_dir().expect("Could not get app directory.").expect("Could not get app directory. (Required to run at all)"); let stdout = File::create("/var/vote/log/daemon.out").unwrap(); let stderr = File::create("/var/vote/log/daemon.err").unwrap();