The migration guide doesn't notice anything about UseExceptionHandler. Usage of a simple call app.UseExceptionHandler() in one's Startup.Configure will fail at runtime with the exception:
System.InvalidOperationException: 'An error occurred when configuring the exception handler middleware. Either the 'ExceptionHandlingPath' or the 'ExceptionHandler' option must be set in 'UseExceptionHandler()'.'
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The templates use the overload of UseExceptionHandler that takes an errorHandlingPath parm
app.UseExceptionHandler("/Error");
@Tratcher this seems like an edge case with great error message. Should this be added to doc?
See https://github.com/aspnet/Diagnostics/issues/400. This wasn't a breaking change per-se, it didn't work before either. 2.1 added an exception to explain why it is mis-configured.
Most helpful comment
The templates use the overload of UseExceptionHandler that takes an
errorHandlingPathparmapp.UseExceptionHandler("/Error");@Tratcher this seems like an edge case with great error message. Should this be added to doc?