add more informative 404 errors
This commit is contained in:
@ -1,6 +1,15 @@
|
||||
@{
|
||||
@model Exception
|
||||
@using SharedLibraryCore
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Error";
|
||||
}
|
||||
|
||||
<h4 class="text-danger">@SharedLibraryCore.Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_ERROR_GENERIC_TITLE"]</h4>
|
||||
<h4 class="text-danger">@SharedLibraryCore.Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_ERROR_GENERIC_DESC"]</h4>
|
||||
<strong class="text-warning">
|
||||
@if (Model != null)
|
||||
{
|
||||
@SharedLibraryCore.Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_ERROR_CODE"].FormatExt(Model.Message);
|
||||
}
|
||||
</strong>
|
||||
|
13
WebfrontCore/Views/Shared/ResponseStatusCode.cshtml
Normal file
13
WebfrontCore/Views/Shared/ResponseStatusCode.cshtml
Normal file
@ -0,0 +1,13 @@
|
||||
@model int
|
||||
@{
|
||||
ViewData["Title"] = "Error";
|
||||
}
|
||||
|
||||
<h4 class="text-danger">@SharedLibraryCore.Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_ERROR_GENERIC_TITLE"]</h4>
|
||||
<h4 class="text-danger">@SharedLibraryCore.Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_ERROR_GENERIC_DESC"]</h4>
|
||||
<strong class="text-warning">
|
||||
@if (Model == 404)
|
||||
{
|
||||
@SharedLibraryCore.Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_ERROR_NOTFOUND"]
|
||||
}
|
||||
</strong>
|
Reference in New Issue
Block a user