[Blazor] Switches Error.razor to Error.cshtml (#22777)
* [Blazor] Switch to use a cshtml file for errors * Update template tests
This commit is contained in:
parent
9d7018544a
commit
5a9a98543f
|
|
@ -1,16 +1,16 @@
|
||||||
@page "/error"
|
@page
|
||||||
|
|
||||||
|
|
||||||
<h1 class="text-danger">Error.</h1>
|
<h1 class="text-danger">Error.</h1>
|
||||||
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
||||||
|
|
||||||
<h3>Development Mode</h3>
|
<h3>Development Mode</h3>
|
||||||
<p>
|
<p>
|
||||||
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
|
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
|
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
|
||||||
It can result in displaying sensitive information from exceptions to end users.
|
It can result in displaying sensitive information from exceptions to end users.
|
||||||
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
|
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
|
||||||
and restarting the app.
|
and restarting the app.
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -914,7 +914,7 @@
|
||||||
"Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs",
|
"Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs",
|
||||||
"Data/Migrations/ApplicationDbContextModelSnapshot.cs",
|
"Data/Migrations/ApplicationDbContextModelSnapshot.cs",
|
||||||
"Pages/Counter.razor",
|
"Pages/Counter.razor",
|
||||||
"Pages/Error.razor",
|
"Pages/Error.cshtml",
|
||||||
"Pages/FetchData.razor",
|
"Pages/FetchData.razor",
|
||||||
"Pages/Index.razor",
|
"Pages/Index.razor",
|
||||||
"Pages/_Host.cshtml",
|
"Pages/_Host.cshtml",
|
||||||
|
|
@ -951,7 +951,7 @@
|
||||||
"Data/WeatherForecast.cs",
|
"Data/WeatherForecast.cs",
|
||||||
"Data/WeatherForecastService.cs",
|
"Data/WeatherForecastService.cs",
|
||||||
"Pages/Counter.razor",
|
"Pages/Counter.razor",
|
||||||
"Pages/Error.razor",
|
"Pages/Error.cshtml",
|
||||||
"Pages/FetchData.razor",
|
"Pages/FetchData.razor",
|
||||||
"Pages/Index.razor",
|
"Pages/Index.razor",
|
||||||
"Pages/_Host.cshtml",
|
"Pages/_Host.cshtml",
|
||||||
|
|
@ -988,7 +988,7 @@
|
||||||
"Data/WeatherForecast.cs",
|
"Data/WeatherForecast.cs",
|
||||||
"Data/WeatherForecastService.cs",
|
"Data/WeatherForecastService.cs",
|
||||||
"Pages/Counter.razor",
|
"Pages/Counter.razor",
|
||||||
"Pages/Error.razor",
|
"Pages/Error.cshtml",
|
||||||
"Pages/FetchData.razor",
|
"Pages/FetchData.razor",
|
||||||
"Pages/Index.razor",
|
"Pages/Index.razor",
|
||||||
"Pages/_Host.cshtml",
|
"Pages/_Host.cshtml",
|
||||||
|
|
@ -1024,7 +1024,7 @@
|
||||||
"_Imports.razor",
|
"_Imports.razor",
|
||||||
"Data/WeatherForecast.cs",
|
"Data/WeatherForecast.cs",
|
||||||
"Data/WeatherForecastService.cs",
|
"Data/WeatherForecastService.cs",
|
||||||
"Pages/Error.razor",
|
"Pages/Error.cshtml",
|
||||||
"Pages/Counter.razor",
|
"Pages/Counter.razor",
|
||||||
"Pages/FetchData.razor",
|
"Pages/FetchData.razor",
|
||||||
"Pages/Index.razor",
|
"Pages/Index.razor",
|
||||||
|
|
@ -1061,7 +1061,7 @@
|
||||||
"Data/WeatherForecast.cs",
|
"Data/WeatherForecast.cs",
|
||||||
"Data/WeatherForecastService.cs",
|
"Data/WeatherForecastService.cs",
|
||||||
"Pages/Counter.razor",
|
"Pages/Counter.razor",
|
||||||
"Pages/Error.razor",
|
"Pages/Error.cshtml",
|
||||||
"Pages/FetchData.razor",
|
"Pages/FetchData.razor",
|
||||||
"Pages/Index.razor",
|
"Pages/Index.razor",
|
||||||
"Pages/_Host.cshtml",
|
"Pages/_Host.cshtml",
|
||||||
|
|
@ -1098,7 +1098,7 @@
|
||||||
"Data/WeatherForecast.cs",
|
"Data/WeatherForecast.cs",
|
||||||
"Data/WeatherForecastService.cs",
|
"Data/WeatherForecastService.cs",
|
||||||
"Pages/Counter.razor",
|
"Pages/Counter.razor",
|
||||||
"Pages/Error.razor",
|
"Pages/Error.cshtml",
|
||||||
"Pages/FetchData.razor",
|
"Pages/FetchData.razor",
|
||||||
"Pages/Index.razor",
|
"Pages/Index.razor",
|
||||||
"Pages/_Host.cshtml",
|
"Pages/_Host.cshtml",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue