From b9e74f1baca921a8df4694cd953972776cc7a754 Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Tue, 16 May 2023 12:58:45 -0700 Subject: [PATCH] Better error message --- FileHandlers/FileRead.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FileHandlers/FileRead.cs b/FileHandlers/FileRead.cs index a9bc0a2..d5e2b15 100644 --- a/FileHandlers/FileRead.cs +++ b/FileHandlers/FileRead.cs @@ -165,7 +165,7 @@ public partial class FileRead : FileReaderHandler, ISMTP Equipment.SelfDescriptionBuilder.AddParameterTypeDefinition(structuredType); } if (!parameterTypeDefinitions.ContainsKey(jsonProperty.Value.ValueKind)) - throw new Exception(string.Concat('{', jsonProperty.Value.ValueKind, "} is not mapped!")); + throw new Exception(string.Concat('<', jsonProperty.Name, "> {", jsonProperty.Value.ValueKind, "} is not mapped!")); } foreach (JsonProperty jsonProperty in jsonProperties) {