From c2583a5060200842a1ed0592604af0967d1a671a Mon Sep 17 00:00:00 2001 From: Shane Krueger Date: Tue, 20 Aug 2024 00:05:45 -0400 Subject: [PATCH] Fix GetDirectiveLocation exception message (#397) --- src/GraphQLParser/Extensions/ASTNodeExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GraphQLParser/Extensions/ASTNodeExtensions.cs b/src/GraphQLParser/Extensions/ASTNodeExtensions.cs index 8b528d4..b4f2c0d 100644 --- a/src/GraphQLParser/Extensions/ASTNodeExtensions.cs +++ b/src/GraphQLParser/Extensions/ASTNodeExtensions.cs @@ -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.") }; }