File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed
Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 55 Layout = " Shared/_Layout" ;
66 ViewData [Keys .Title ] = " 404 - Not Found" ;
77 ViewData [Keys .Headings ] = " " ;
8- ViewData [Keys .Highlight ] = MainHighlight . Vine ;
8+ ViewData [Keys .Highlight ] = " " ;
99}
1010
1111
Original file line number Diff line number Diff line change 33
44@{
55 Layout = " Shared/_Layout" ;
6- ViewData [Keys .Title ] = " 404 - Not Found " ;
6+ ViewData [Keys .Title ] = " 500 - Internal Server Error " ;
77 ViewData [Keys .Headings ] = " " ;
8- ViewData [Keys .Highlight ] = MainHighlight . Vine ;
8+ ViewData [Keys .Highlight ] = " " ;
99}
1010
1111<div class =" error" >
Original file line number Diff line number Diff line change 33
44@{
55 Layout = " Shared/_Layout" ;
6- ViewData [Keys .Title ] = " 404 - Not Found " ;
6+ ViewData [Keys .Title ] = " An error occurred " ;
77 ViewData [Keys .Headings ] = " " ;
8- ViewData [Keys .Highlight ] = MainHighlight . Vine ;
8+ ViewData [Keys .Highlight ] = " " ;
99}
1010
1111<div class =" error" >
Original file line number Diff line number Diff line change 4545
4646}
4747if ( app . Environment . IsProduction ( ) ) {
48- // app.UseExceptionHandler("/error");
4948 // app.UseHttpsRedirection();
5049}
51- app . UseExceptionHandler ( "/error " ) ;
50+ app . UseExceptionHandler ( "/errors/500 " ) ;
5251
5352app . UseSwagger ( ) ;
5453app . UseSwaggerUI ( c =>
You can’t perform that action at this time.
0 commit comments