Skip to content

Commit fa47b70

Browse files
author
Chris Skardon
authored
Changes error message for AddressResolver overload (#403)
1 parent 24e4d5e commit fa47b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Neo4jClient/BoltGraphClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public BoltGraphClient(Uri uri, IEnumerable<Uri> uris, string username = null, s
7777
{
7878
//TODO - const/etc these
7979
if (!new [] {"neo4j", "neo4j+s", "neo4j+ssc"}.Contains(uri.Scheme.ToLowerInvariant()))
80-
throw new NotSupportedException($"To use the {nameof(BoltGraphClient)} you need to provide a 'bolt://' scheme, not '{uri.Scheme}'.");
80+
throw new NotSupportedException($"To use the {nameof(BoltGraphClient)} with an Address Resolver you need to use the 'neo4j://' scheme, for the 'uri' parameter, not '{uri.Scheme}'.");
8181

8282
addressResolver = new AddressResolver(uri, localUris);
8383
}

0 commit comments

Comments
 (0)