mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-18 17:47:54 +08:00
Displaying exception details in Admin only
--HG-- branch : 1.x
This commit is contained in:
12
src/Orchard.Web/Themes/TheAdmin/Views/ErrorPage.cshtml
Normal file
12
src/Orchard.Web/Themes/TheAdmin/Views/ErrorPage.cshtml
Normal file
@@ -0,0 +1,12 @@
|
||||
@*
|
||||
ErrorPage(string Message, Exception Exception)
|
||||
*@
|
||||
|
||||
<div>
|
||||
<h1 id="page-title">@Html.TitleForPage(T("Oops. Something went wrong ... sorry"))</h1>
|
||||
<div>
|
||||
<p>@T("An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back").Text</p>
|
||||
<p>@Model.Message</p>
|
||||
<p>@Model.Exception</p>
|
||||
</div>
|
||||
</div>
|
@@ -151,6 +151,9 @@
|
||||
<Content Include="TheThemeMachine\Views\Pager.First.cshtml" />
|
||||
<Content Include="TheThemeMachine\Views\Pager.Last.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="TheAdmin\Views\ErrorPage.cshtml" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
Reference in New Issue
Block a user