From 977922dc5725b82549ff069bd05799507ebfdeff Mon Sep 17 00:00:00 2001 From: mousecrusher2 <95418154+mousecrusher2@users.noreply.github.com> Date: Wed, 17 Apr 2024 18:53:26 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=91=E3=82=B9=E3=81=AE=E3=83=81=E3=82=A7?= =?UTF-8?q?=E3=83=83=E3=82=AF=E3=82=92=E5=BC=B7=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index bcb63ce..c8d3f88 100644 --- a/src/main.rs +++ b/src/main.rs @@ -46,6 +46,11 @@ async fn main() { std::process::exit(1); } + if !cli.server_path.exists() || !cli.server_path.is_file() { + eprintln!("Server path does not exist"); + std::process::exit(1); + } + let mut child = Command::new(&cli.server_path) .env("LD_LIBRARY_PATH", cli.server_path.parent().unwrap()) .args(cli.server_options)