diff --git a/src/JobsMedical.Web/Pages/Error.cshtml b/src/JobsMedical.Web/Pages/Error.cshtml index 6f92b95..8981863 100644 --- a/src/JobsMedical.Web/Pages/Error.cshtml +++ b/src/JobsMedical.Web/Pages/Error.cshtml @@ -14,6 +14,15 @@
} +@if (Model.AdminDetail is not null) +{ +@Model.AdminPath@Model.AdminDetail+
Swapping to the Development environment displays detailed information about the error that occurred.
diff --git a/src/JobsMedical.Web/Pages/Error.cshtml.cs b/src/JobsMedical.Web/Pages/Error.cshtml.cs
index f7061f5..ad865db 100644
--- a/src/JobsMedical.Web/Pages/Error.cshtml.cs
+++ b/src/JobsMedical.Web/Pages/Error.cshtml.cs
@@ -1,4 +1,5 @@
using System.Diagnostics;
+using Microsoft.AspNetCore.Diagnostics;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
@@ -12,9 +13,24 @@ public class ErrorModel : PageModel
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
+ ///