Skip to content

Commit 3217eb2

Browse files
committed
Removed '@' from error message
1 parent 2c88350 commit 3217eb2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Thinktecture.Runtime.Extensions.SourceGenerator/CodeAnalysis/ValueObjects/KeyedValueObjectCodeGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ private void GenerateValidateMethod(bool allowNullKeyMemberInput, bool allowNull
371371
if(").AppendEscaped(_state.KeyMember.ArgumentName).Append(@" is null)
372372
{
373373
obj = default;
374-
return global::Thinktecture.Internal.ValidationErrorCreator.CreateValidationError<").AppendTypeFullyQualified(_state.ValidationError).Append(@">(""The argument '").AppendEscaped(_state.KeyMember.ArgumentName).Append(@"' must not be null."");
374+
return global::Thinktecture.Internal.ValidationErrorCreator.CreateValidationError<").AppendTypeFullyQualified(_state.ValidationError).Append(@">(""The argument '").Append(_state.KeyMember.ArgumentName).Append(@"' must not be null."");
375375
}
376376
");
377377
}

test/Thinktecture.Runtime.Extensions.SourceGenerator.Tests/SourceGeneratorTests/ValueObjectSourceGeneratorTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ internal static void ModuleInit()
15771577
if(@value is null)
15781578
{
15791579
obj = default;
1580-
return global::Thinktecture.Internal.ValidationErrorCreator.CreateValidationError<global::Thinktecture.ValidationError>("The argument '@value' must not be null.");
1580+
return global::Thinktecture.Internal.ValidationErrorCreator.CreateValidationError<global::Thinktecture.ValidationError>("The argument 'value' must not be null.");
15811581
}
15821582

15831583
global::Thinktecture.ValidationError? validationError = null;
@@ -1741,7 +1741,7 @@ internal static void ModuleInit()
17411741
if(@value is null)
17421742
{
17431743
obj = default;
1744-
return global::Thinktecture.Internal.ValidationErrorCreator.CreateValidationError<global::Thinktecture.ValidationError>("The argument '@value' must not be null.");
1744+
return global::Thinktecture.Internal.ValidationErrorCreator.CreateValidationError<global::Thinktecture.ValidationError>("The argument 'value' must not be null.");
17451745
}
17461746

17471747
global::Thinktecture.ValidationError? validationError = null;
@@ -5262,7 +5262,7 @@ internal static void ModuleInit()
52625262
if(@value is null)
52635263
{
52645264
obj = default;
5265-
return global::Thinktecture.Internal.ValidationErrorCreator.CreateValidationError<global::Thinktecture.ValidationError>("The argument '@value' must not be null.");
5265+
return global::Thinktecture.Internal.ValidationErrorCreator.CreateValidationError<global::Thinktecture.ValidationError>("The argument 'value' must not be null.");
52665266
}
52675267

52685268
global::Thinktecture.ValidationError? validationError = null;
@@ -5456,7 +5456,7 @@ internal static void ModuleInit()
54565456
if(@value is null)
54575457
{
54585458
obj = default;
5459-
return global::Thinktecture.Internal.ValidationErrorCreator.CreateValidationError<global::Thinktecture.ValidationError>("The argument '@value' must not be null.");
5459+
return global::Thinktecture.Internal.ValidationErrorCreator.CreateValidationError<global::Thinktecture.ValidationError>("The argument 'value' must not be null.");
54605460
}
54615461

54625462
global::Thinktecture.ValidationError? validationError = null;

0 commit comments

Comments
 (0)