From 2d755b010c51d8f93b343853feb904d04b971869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 13 Sep 2025 13:26:32 +0200 Subject: [PATCH] Log exceptions for dedicated servers. --- OpenRA.Server/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Server/Program.cs b/OpenRA.Server/Program.cs index 2f76d0d0ed..a47de057ae 100644 --- a/OpenRA.Server/Program.cs +++ b/OpenRA.Server/Program.cs @@ -27,8 +27,10 @@ namespace OpenRA.Server { Run(args); } - catch + catch (Exception e) { + ExceptionHandler.HandleFatalError(e); + // Flush logs before rethrowing, i.e. allowing the exception to go unhandled. // try-finally won't work - an unhandled exception kills our process without running the finally block! Log.Dispose();