The Free Software Media System - Server Backend & API
Handle Kestrel startup failures with a nice error
Joshua Boniface387192610f5a
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex 5719c5e46f..d22f2be817 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -663,7 +663,15 @@ namespace Emby.Server.Implementations}).Build();- await host.StartAsync().ConfigureAwait(false);+ try+ {+ await host.StartAsync().ConfigureAwait(false);+ }+ catch (Exception ex)+ {+ Logger.LogError("Kestrel failed to start! This is most likely due to an invalid address or port bind - correct your bind configuration in system.xml and try again.");+ throw;+ }}private async Task ExecuteWebsocketHandlerAsync(HttpContext context, Func<Task> next)