When the code in the startup class throws, ASP.NET Core catches the exception instead of letting it fall through behind the IWebHost.Build
call.
The app consequently does start but only serves an error page.
So how do I react to a problematic startup if I don't get to catch the exception myself?
Please don't tell me I need to catch it in Startup.cs
.