Special page to handle 500 errors

This commit is contained in:
rockstardev
2020-02-01 01:44:01 -06:00
parent ef503fa907
commit fb2a0fb7fb
3 changed files with 17 additions and 1 deletions

View File

@@ -14,7 +14,8 @@ namespace BTCPayServer.Controllers
{
if (statusCode.HasValue)
{
if (statusCode.Value == 404)
var specialPages = new[] { 404, 500 };
if (specialPages.Any(a => a == statusCode.Value))
{
var viewName = statusCode.ToString();
return View(viewName);