From ebb26ae709570a84004c27f34e9307c33ac6b000 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Fri, 19 Apr 2024 00:55:07 +0200 Subject: Add Solution --- solve/PhotoEditor/Views/Shared/Error.cshtml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 solve/PhotoEditor/Views/Shared/Error.cshtml (limited to 'solve/PhotoEditor/Views/Shared/Error.cshtml') diff --git a/solve/PhotoEditor/Views/Shared/Error.cshtml b/solve/PhotoEditor/Views/Shared/Error.cshtml new file mode 100644 index 0000000..4fa9d25 --- /dev/null +++ b/solve/PhotoEditor/Views/Shared/Error.cshtml @@ -0,0 +1,25 @@ +@model ErrorViewModel +@{ + ViewData["Title"] = "Error"; +} + +

Error.

+

An error occurred while processing your request.

+ +@if (Model.ShowRequestId) +{ +

+ Request ID: @Model.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. +

-- cgit v1.2.3-71-gd317