Skip to content

Commit

Permalink
Fix GetDirectiveLocation exception message (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 authored Aug 20, 2024
1 parent 9faa2bd commit c2583a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GraphQLParser/Extensions/ASTNodeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,6 @@ public static int FragmentsCount(this GraphQLDocument document)
GraphQLInlineFragment => DirectiveLocation.InlineFragment,
GraphQLVariableDefinition => DirectiveLocation.VariableDefinition,

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

0 comments on commit c2583a5

Please sign in to comment.