Website Summary Files Commits Branches @commit @diff @stats
path: root / ExamTemplate / Web / ExamTemplate.Web / Views / Shared / Error.cshtml
diff options
context:
space:
mode:
Commitffd59fcdc11b8b57cab30be090d2775d2b6b1ba3 (patch)
Author
 Kamen Mladenov <kamen.d.mladenov@protonmail.com>
2021-05-16 05:17:37 +0000
Committer
 Kamen Mladenov <kamen.d.mladenov@protonmail.com>
2021-05-16 05:17:37 +0000
Files3e82cb2864aec05505509e1afc01c6843f0a64a9 /ExamTemplate/Web/ExamTemplate.Web/Views/Shared/Error.cshtml
it-kariera-exam-template-ffd59fcdc11b8b57cab30be090d2775d2b6b1ba3.tar
it-kariera-exam-template-ffd59fcdc11b8b57cab30be090d2775d2b6b1ba3.tar.gz
it-kariera-exam-template-ffd59fcdc11b8b57cab30be090d2775d2b6b1ba3.zip
Parent2ac139d0854c0f6d1b4cebc1487dd41128f00c60 (diff)
Parent564209043493c77fd51ac096b5a160bb20c46f12 (diff)
Merge branch 'fuckoff' into 'master'
New structure See merge request Syndamia/it-kariera-exam-template!2
1 files changed, 25 insertions, 0 deletions
-rw-r--r--ExamTemplate/Web/ExamTemplate.Web/Views/Shared/Error.cshtml25
diff --git a/ExamTemplate/Web/ExamTemplate.Web/Views/Shared/Error.cshtml b/ExamTemplate/Web/ExamTemplate.Web/Views/Shared/Error.cshtml
new file mode 100644
index 0000000..5a7ce95
--- /dev/null
+++ b/ExamTemplate/Web/ExamTemplate.Web/Views/Shared/Error.cshtml
@@ -0,0 +1,25 @@
+@model ErrorViewModel
+@{
+ ViewData["Title"] = "Error";
+}
+
+<h1 class="text-danger">Error.</h1>
+<h2 class="text-danger">An error occurred while processing your request.</h2>
+
+@if (Model.ShowRequestId)
+{
+ <p>
+ <strong>Request ID:</strong> <code>@Model.RequestId</code>
+ </p>
+}
+
+<h3>Development Mode</h3>
+<p>
+ Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
+</p>
+<p>
+ <strong>The Development environment shouldn't be enabled for deployed applications.</strong>
+ It can result in displaying sensitive information from exceptions to end users.
+ For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
+ and restarting the app.
+</p>