From ab938b850221d67582081028a9d2298bb29a29a7 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Thu, 30 May 2024 11:23:30 +0200 Subject: [PATCH] Removed the error page --- .../Components/Pages/Error.razor | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 app/MindWork AI Studio/Components/Pages/Error.razor diff --git a/app/MindWork AI Studio/Components/Pages/Error.razor b/app/MindWork AI Studio/Components/Pages/Error.razor deleted file mode 100644 index 30c1b33..0000000 --- a/app/MindWork AI Studio/Components/Pages/Error.razor +++ /dev/null @@ -1,38 +0,0 @@ -@page "/Error" -@using System.Diagnostics - -Error - -

Error.

-

An error occurred while processing your request.

- -@if (ShowRequestId) -{ -

- Request ID: @RequestId -

-} - -

Development Mode

-

- Swapping to Development environment will display more detailed information about the error that occurred. -

-

- The Development environment shouldn't be enabled for deployed applications. - It can result in displaying sensitive information from exceptions to end users. - For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development - and restarting the app. -

- -@code{ - - [CascadingParameter] - private HttpContext? HttpContext { get; set; } - - private string? RequestId { get; set; } - private bool ShowRequestId => !string.IsNullOrEmpty(RequestId); - - protected override void OnInitialized() => - RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier; - -} \ No newline at end of file