mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-25 13:33:28 +08:00
fix(mediator): 修复参数验证错误消息中的字符串拼接问题
- 修正了 Name 参数为空时错误消息中的字符串拼接格式 - 在错误消息中添加了适当的空格分隔符
This commit is contained in:
parent
5f3fac2147
commit
6ee7a52326
@ -531,7 +531,7 @@ public sealed class TestValidatedCommandHandler : IRequestHandler<TestValidatedC
|
|||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(request.Name))
|
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);
|
return ValueTask.FromResult(Unit.Value);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user