| 1234567891011121314151617181920212223242526272829303132333435363738 |
- @using Abp.Collections.Extensions
- @using Abp.Extensions
- @model Abp.Web.Mvc.Models.ErrorViewModel
- @{
- ViewBag.DisableTenantChange = true;
- var errorMessage = Model.ErrorInfo.Message;
- var errorDetails = Model.ErrorInfo.Details;
- if (errorDetails.IsNullOrEmpty())
- {
- errorDetails = errorMessage;
- errorMessage = L("Error");
- }
- }
- <div class="container d-flex flex-row-fluid flex-column justify-content-md-center p-12">
- <h1 class="error-title font-weight-boldest text-info mt-10 mt-md-0 mb-12">
- @errorMessage
- </h1>
- <p class="font-weight-boldest display-4">
- @errorDetails
- </p>
- <p class="font-size-h3">
- @* Show validation errors *@
- @if (!Model.ErrorInfo.ValidationErrors.IsNullOrEmpty())
- {
- foreach (var validationError in Model.ErrorInfo.ValidationErrors)
- {
- <text>* </text>
- @(validationError.Message)
- if (validationError.Members != null && validationError.Members.Any())
- {
- <text>(@string.Join(", ", validationError.Members))</text>
- }
- <br/>
- }
- }
- </p>
- </div>
|