mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-24 19:35:22 +02:00
Use new front-end based on Dashmin template
This commit is contained in:
parent
c118242c5b
commit
dbd7fafb34
4391 changed files with 228401 additions and 73494 deletions
|
@ -9,24 +9,9 @@ namespace MTWireGuard.Pages
|
|||
[IgnoreAntiforgeryToken]
|
||||
public class ErrorModel : PageModel
|
||||
{
|
||||
public string? RequestId { get; set; }
|
||||
public string? ExceptionMessage { get; set; }
|
||||
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||
|
||||
public ErrorModel()
|
||||
{
|
||||
}
|
||||
|
||||
public void OnGet()
|
||||
{
|
||||
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
|
||||
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
|
||||
|
||||
var exceptionHandlerPathFeature =
|
||||
HttpContext.Features.Get<IExceptionHandlerPathFeature>();
|
||||
|
||||
ViewData["Title"] = exceptionHandlerPathFeature.Error.Message;
|
||||
ViewData["Message"] = exceptionHandlerPathFeature.Error.Source;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue