diff --git a/Src/RCommon.FluentValidation/FluentValidationProvider.cs b/Src/RCommon.FluentValidation/FluentValidationProvider.cs index bf1c02ac..212613d5 100644 --- a/Src/RCommon.FluentValidation/FluentValidationProvider.cs +++ b/Src/RCommon.FluentValidation/FluentValidationProvider.cs @@ -42,7 +42,7 @@ public async Task ValidateAsync(T target, bool throwOnFaul if (failures.Count != 0) { _logger.LogWarning("Validation errors - {CommandType} - Command: {@Command} - Errors: {@ValidationErrors}", target.GetGenericTypeName(), target, failures); - string message = $"Validation Errors for type {typeof(T).Name}"; + string message = $"Validation Errors"; var faults = new List(); foreach (var failure in failures) @@ -54,7 +54,7 @@ public async Task ValidateAsync(T target, bool throwOnFaul if (throwOnFaults) { - throw new ApplicationServices.Validation.ValidationException(message, faults); + throw new ApplicationServices.Validation.ValidationException(message, faults, true); } }