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 895e1c30855..109aed3ed49 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 @@ private async Task ConvertDocumentContentToHtmlAsync() 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}````";