fix(mediator): 修复参数验证错误消息中的字符串拼接问题

- 修正了 Name 参数为空时错误消息中的字符串拼接格式
- 在错误消息中添加了适当的空格分隔符
This commit is contained in:
GeWuYou 2026-02-23 10:16:05 +08:00 committed by gewuyou
parent 5f3fac2147
commit 6ee7a52326

View File

@ -531,7 +531,7 @@ public sealed class TestValidatedCommandHandler : IRequestHandler<TestValidatedC
{
if (string.IsNullOrWhiteSpace(request.Name))
{
throw new ArgumentException($"Name cannot be empty{nameof(request.Name)}");
throw new ArgumentException($"Name cannot be empty {nameof(request.Name)}");
}
return ValueTask.FromResult(Unit.Value);