From 333aafbbd18b1ef72c14c9d3ec5319d07dc042c4 Mon Sep 17 00:00:00 2001 From: th0masj0 Date: Mon, 19 Apr 2021 00:28:28 +0200 Subject: [PATCH] Add typeName to exception message which leads to ArgumentException in CodeArtifact ctor. (#1358) --- src/NJsonSchema.CodeGeneration/CodeArtifact.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NJsonSchema.CodeGeneration/CodeArtifact.cs b/src/NJsonSchema.CodeGeneration/CodeArtifact.cs index b0b50f7b9..a5a08f0b9 100644 --- a/src/NJsonSchema.CodeGeneration/CodeArtifact.cs +++ b/src/NJsonSchema.CodeGeneration/CodeArtifact.cs @@ -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;