Skip to content

Instantly share code, notes, and snippets.

@scottsauber

scottsauber/Startup.cs

Last active Apr 4, 2017
Embed
What would you like to do?
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
// other code removed for brevity
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
else
{
// when an exception occurs, route to /Home/Error
app.UseExceptionHandler("/Home/Error");
}
// other code removed for brevity
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment