AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Suggestion: Include a simple example of how to set up ProblemDetails to include/exclude the exception details.

Open PureKrome opened this issue 2 years ago • 0 comments

👋🏻 G'day - would be really helpful/nice to include some sample code to include/exclude any exception information if the environment is not IsDevelopment().

if it IsDevelopment() then we can see the extra exception information. This is different to error information for 400 bad requests, etc. which I would have thought, should always be shown/displayed.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

PureKrome avatar Jul 06 '23 01:07 PureKrome