Browse Source

Update Index.cshtml.cs

pull/20463/head
liangshiwei 2 years ago
parent
commit
c72c30ba71
  1. 2
      modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs

2
modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs

@ -575,7 +575,7 @@ namespace Volo.Docs.Pages.Documents.Project
Document.Content = content;
}
protected async Task OnSectionRenderingErrorAsync(Exception e)
protected virtual async Task OnSectionRenderingErrorAsync(Exception e)
{
var message = $"Error occurred during the rendering of this document. The document is not valid: {e.Message}";
Document.Content = $"````txt{Environment.NewLine}{message}{Environment.NewLine}````";

Loading…
Cancel
Save