Skip to content

Commit

Permalink
Update Index.cshtml.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
realLiangshiwei committed Aug 14, 2024
1 parent 6ae066d commit c72c30b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}````";
Expand Down

0 comments on commit c72c30b

Please sign in to comment.