Merge pull request #821 from danpalmer/patch-3

Fix grammar in error message
This commit is contained in:
Syrus Akbary 2018-08-30 19:06:06 +02:00 committed by GitHub
commit c40ce98bb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ class IterableConnectionField(Field):
if is_node(connection_type):
raise Exception(
"ConnectionField's now need a explicit ConnectionType for Nodes.\n"
"ConnectionFields now need a explicit ConnectionType for Nodes.\n"
"Read more: https://github.com/graphql-python/graphene/blob/v2.0.0/UPGRADE-v2.0.md#node-connections"
)

View File

@ -138,7 +138,7 @@ def test_connectionfield_node_deprecated():
with pytest.raises(Exception) as exc_info:
field.type
assert "ConnectionField's now need a explicit ConnectionType for Nodes." in str(
assert "ConnectionFields now need a explicit ConnectionType for Nodes." in str(
exc_info.value
)