Skip to content

Commit 436a885

Browse files
authored
Merge pull request #22902 from abpframework/salihozkara/exception-localization
When the value of 'SendExceptionsDetailsToClients' is set to true, the exception should be localized
2 parents f2d80b2 + 5dfffe3 commit 436a885

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

framework/src/Volo.Abp.ExceptionHandling/Volo/Abp/AspNetCore/ExceptionHandling/DefaultExceptionToErrorInfoConverter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ protected virtual RemoteServiceErrorInfo CreateDetailedErrorInfoFromException(Ex
236236
errorInfo.ValidationErrors = GetValidationErrorInfos((exception as AbpValidationException)!);
237237
}
238238

239+
TryToLocalizeExceptionMessage(exception, errorInfo);
240+
239241
return errorInfo;
240242
}
241243

0 commit comments

Comments
 (0)