Skip to content

Commit

Permalink
Set ErrorController's method to virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
realLiangshiwei committed Aug 17, 2020
1 parent cea173b commit 8d17e7a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public ErrorController(
_abpErrorPageOptions = abpErrorPageOptions.Value;
}

public async Task<IActionResult> Index(string errorId)
public virtual async Task<IActionResult> Index(string errorId)
{
var errorMessage = await _interaction.GetErrorContextAsync(errorId) ?? new ErrorMessage
{
Expand All @@ -53,7 +53,7 @@ public async Task<IActionResult> Index(string errorId)
});
}

private string GetErrorPageUrl(int statusCode)
protected virtual string GetErrorPageUrl(int statusCode)
{
var page = _abpErrorPageOptions.ErrorViewUrls.GetOrDefault(statusCode.ToString());

Expand Down

0 comments on commit 8d17e7a

Please sign in to comment.