diff --git a/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/Documents/DocumentRenderErrorEvent.cs b/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/Documents/DocumentRenderErrorEvent.cs index 2f30099576..f837c740e7 100644 --- a/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/Documents/DocumentRenderErrorEvent.cs +++ b/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/Documents/DocumentRenderErrorEvent.cs @@ -1,3 +1,5 @@ +using System.Collections.Generic; + namespace Volo.Docs.Documents; public class DocumentRenderErrorEvent @@ -5,4 +7,8 @@ public class DocumentRenderErrorEvent public string Name { get; set; } public string ErrorMessage { get; set; } + + public string Url { get; set; } + + public Dictionary UserPreferences { get; set; } } \ No newline at end of file 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 c80b81bf71..970e967a98 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 @@ -590,7 +590,10 @@ 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(), + UserPreferences = UserPreferences }); // Slow down with crawling