Skip to content

Commit c2583a5

Browse files
authored
Fix GetDirectiveLocation exception message (#397)
1 parent 9faa2bd commit c2583a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GraphQLParser/Extensions/ASTNodeExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,6 @@ public static int FragmentsCount(this GraphQLDocument document)
162162
GraphQLInlineFragment => DirectiveLocation.InlineFragment,
163163
GraphQLVariableDefinition => DirectiveLocation.VariableDefinition,
164164

165-
_ => throw new ArgumentOutOfRangeException(nameof(node), "The supplied node cannot")
165+
_ => throw new ArgumentOutOfRangeException(nameof(node), "Directives cannot be supplied for the specified node.")
166166
};
167167
}

0 commit comments

Comments
 (0)