Browse Source
Fix logic for entity not found error message
pull/23771/head
Ma Liming
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
framework/src/Volo.Abp.ExceptionHandling/Volo/Abp/AspNetCore/ExceptionHandling/DefaultExceptionToErrorInfoConverter.cs
|
|
|
@ -195,7 +195,7 @@ public class DefaultExceptionToErrorInfoConverter : IExceptionToErrorInfoConvert |
|
|
|
{ |
|
|
|
if (exception.EntityType != null) |
|
|
|
{ |
|
|
|
var message = exception.Id == null |
|
|
|
var message = exception.Id != null |
|
|
|
? string.Format(L["EntityNotFoundErrorMessage"], exception.EntityType.Name, exception.Id) |
|
|
|
: string.Format(L["EntityNotFoundErrorMessageWithoutId"], exception.EntityType.Name); |
|
|
|
return new RemoteServiceErrorInfo(message); |
|
|
|
|