Skip to content

Commit

Permalink
Add typeName to exception message which leads to ArgumentException in…
Browse files Browse the repository at this point in the history
… CodeArtifact ctor. (#1358)
  • Loading branch information
thomasjoscht committed Apr 18, 2021
1 parent a9e7b34 commit 333aafb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NJsonSchema.CodeGeneration/CodeArtifact.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public CodeArtifact(string typeName, string baseTypeName, CodeArtifactType type,
{
if (typeName == baseTypeName)
{
throw new ArgumentException("The baseTypeName cannot equal typeName.", nameof(typeName));
throw new ArgumentException($"The baseTypeName '{baseTypeName}' cannot equal typeName.", nameof(typeName));
}

TypeName = typeName;
Expand Down

0 comments on commit 333aafb

Please sign in to comment.