diff --git a/server/src/main.rs b/server/src/main.rs index d1550f443..887c8a367 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -27,7 +27,10 @@ fn main() { tracing::info!("The Settled Reach - Simulation Server starting"); tracing::info!("Waiting for client connection on {}", addr); - let bridge = TcpBridge::accept(&addr).expect("Failed to accept client connection"); + let bridge = TcpBridge::accept(&addr).unwrap_or_else(|e| { + tracing::error!("Failed to accept client connection on {}: {}", addr, e); + std::process::exit(1); + }); tracing::info!("Client connected, initializing simulation"); // Create the bevy App and add plugins