Lidarr/NzbDrone.Web/Views/Shared/Error.aspx

26 lines
767 B
Plaintext
Raw Normal View History

2010-09-23 03:19:47 +00:00
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<System.Web.Mvc.HandleErrorInfo>" %>
<%@ Import Namespace="NLog" %>
2010-09-23 03:19:47 +00:00
<asp:Content ID="errorTitle" ContentPlaceHolderID="TitleContent" runat="server">
EPIC FAIL!!!
2010-09-23 03:19:47 +00:00
</asp:Content>
<asp:Content ID="errorContent" ContentPlaceHolderID="MainContent" runat="server">
<h2>
<%:Model.Exception.Message%>
2010-09-23 03:19:47 +00:00
</h2>
<br />
<%:Model.Exception.ToString()%>
2010-09-23 03:19:47 +00:00
</asp:Content>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
try
{
LogManager.GetLogger("EPICFAIL").FatalException("Unhandled Exception", Model.Exception);
}
catch (Exception)
{
}
}
</script>