JsonUtils : update error message

This commit is contained in:
Stef Heyenrath
2018-09-06 19:27:38 +02:00
parent f3c395833a
commit 39b1eb8f43

View File

@@ -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))