Skip to content

Commit cf0b94e

Browse files
Update error-handling.md (dotnet#16193)
* Update error-handling.md * Update error-handling.md * Update error-handling.md
1 parent 6c73780 commit cf0b94e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aspnetcore/fundamentals/error-handling.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ Here's an example of using a lambda for exception handling:
8080

8181
[!code-csharp[](error-handling/samples/2.x/ErrorHandlingSample/Startup.cs?name=snippet_HandlerPageLambda)]
8282

83+
In the preceding code, `await context.Response.WriteAsync(new string(' ', 512));` is added so the Internet Explorer browser displays the error message rather than an IE error message. For more information, see [this GitHub issue](https://github.com/aspnet/AspNetCore.Docs/issues/16144).
84+
8385
> [!WARNING]
8486
> Do **not** serve sensitive error information from <xref:Microsoft.AspNetCore.Diagnostics.IExceptionHandlerFeature> or <xref:Microsoft.AspNetCore.Diagnostics.IExceptionHandlerPathFeature> to clients. Serving errors is a security risk.
8587

0 commit comments

Comments
 (0)