Created
August 5, 2012 22:25
-
-
Save RyannosaurusRex/3267474 to your computer and use it in GitHub Desktop.
ASP.NET MVC adding error information to your error page for easier debugging during development.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model System.Web.Mvc.HandleErrorInfo | |
@{ | |
ViewBag.Title = "Error"; | |
} | |
<h2> | |
Sorry, an error occurred while processing your request. | |
</h2> | |
<!-- Don't do this in production! You don't want peeps seeing stack traces now, do you? --> | |
<div style="color:white"> | |
@Model.Exception.Message | |
@Model.Exception.StackTrace | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment