We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
UseDeveloperExceptionPage()
1 parent 5140a7e commit 40d0b57Copy full SHA for 40d0b57
1 file changed
OnTopic.AspNetCore.Mvc.Host/Program.cs
@@ -48,10 +48,7 @@
48
/*------------------------------------------------------------------------------------------------------------------------------
49
| Configure: Error Pages
50
\-----------------------------------------------------------------------------------------------------------------------------*/
51
-if (app.Environment.IsDevelopment()) {
52
- app.UseDeveloperExceptionPage();
53
-}
54
-else {
+if (!app.Environment.IsDevelopment()) {
55
app.UseStatusCodePagesWithReExecute("/Error/{0}");
56
app.UseExceptionHandler("/Error/500/");
57
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
0 commit comments