Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created June 21, 2018 01:07
Show Gist options
  • Save dcomartin/8536ad8497fbbc55c256bcf509eda0ec to your computer and use it in GitHub Desktop.
Save dcomartin/8536ad8497fbbc55c256bcf509eda0ec to your computer and use it in GitHub Desktop.
public override void Configure(IApplicationBuilder app)
{
app.UseProblemDetails(x =>
{
// This is the default behavior; only include exception details in a development environment.
x.IncludeExceptionDetails = ctx => Environment.IsDevelopment();
});
app.UseMvc();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment