mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-19 21:24:22 +01:00
Special page to handle 500 errors
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user