From 39b1eb8f43a9668fb616d1a7137ee886f55a0f76 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Thu, 6 Sep 2018 19:27:38 +0200 Subject: [PATCH] JsonUtils : update error message --- src/WireMock.Net/Util/JsonUtils.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/WireMock.Net/Util/JsonUtils.cs b/src/WireMock.Net/Util/JsonUtils.cs index a56d7969..c35a4984 100644 --- a/src/WireMock.Net/Util/JsonUtils.cs +++ b/src/WireMock.Net/Util/JsonUtils.cs @@ -40,6 +40,7 @@ namespace WireMock.Util { WalkNode(child.Value, child.Path, child.Name, childLines); } + text.Append(string.Join(", ", childLines)); text.Append(")"); @@ -115,7 +116,7 @@ namespace WireMock.Util break; default: - throw new NotSupportedException($"JTokenType '{node.Type}'."); + throw new NotSupportedException($"JTokenType '{node.Type}' cannot be converted to a Dynamic Linq cast operator."); } if (!string.IsNullOrEmpty(propertyName))