Код: Выделить всё
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler(exceptionHandlerApp =>
{
exceptionHandlerApp.Run(async context =>
{
//
});
});
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... r-messages
Код: Выделить всё
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler(exceptionHandlerApp =>
{
exceptionHandlerApp.Run(async context =>
{
//
});
});
}