Displaying exception details in Admin only

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-01-06 18:04:52 -08:00
parent 0eaa21039f
commit cd642f473a
2 changed files with 15 additions and 0 deletions

View 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>

View File

@@ -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.