diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs index 895e1c3085..109aed3ed4 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs +++ b/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}````";