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..19e7b01227 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 @@ -5,4 +5,6 @@ public class DocumentRenderErrorEvent public string Name { get; set; } public string ErrorMessage { get; set; } + + public string Url { 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..b3ec299de9 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,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