Skip to content

Commit

Permalink
Fixed options check for mutation conventions . (#6502)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib authored Sep 1, 2023
1 parent 5d1a224 commit 1f9d822
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static void AddErrorType(
throw new ArgumentNullException(nameof(errorType));
}

if (descriptorContext.ContextData.ContainsKey(MutationContextDataKeys.Options))
if (!descriptorContext.ContextData.ContainsKey(MutationContextDataKeys.Options))
{
var richMessage = string.Format(
MutationConvention_ShouldBeEnabled_WhenAddingErrorType,
Expand Down

0 comments on commit 1f9d822

Please sign in to comment.