@ -5,4 +5,6 @@ public class DocumentRenderErrorEvent
public string Name { get; set; }
public string ErrorMessage { get; set; }
public string Url { get; set; }
}
@ -590,7 +590,9 @@ namespace Volo.Docs.Pages.Documents.Project
Document.Content = $"````txt{Environment.NewLine}{message}{Environment.NewLine}````";
await LocalEventBus.PublishAsync(new DocumentRenderErrorEvent
{
ErrorMessage = message, Name = Document.Name
ErrorMessage = e.Message,
Name = Document.Name,
Url = Request.GetDisplayUrl()
});
// Slow down with crawling