Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created June 21, 2018 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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