Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
Summary: Fix error message spelling/typo.

Differential Revision: D46805188

fbshipit-source-id: c057cca46f73687728ae7454ac0c5d37bc8b78b8
  • Loading branch information
gordyf authored and facebook-github-bot committed Jun 16, 2023
1 parent a203dc6 commit bc40b4b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,8 @@ pub enum ValidationMessage {
outer_type_plural: &'static str,
},

#[error(
"Fields defined using Relay Resolvers are not not allowed within @updatable operations."
)]
UpdatableDisallowRealyResolvers,
#[error("Fields defined using Relay Resolvers are not allowed within @updatable operations.")]
UpdatableDisallowRelayResolvers,

#[error("The directives @include and @skip are not allowed within {outer_type_plural}.")]
UpdatableNoConditions { outer_type_plural: &'static str },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ impl<'a> Validator for UpdatableDirective<'a> {
{
return Err(vec![
Diagnostic::error(
ValidationMessage::UpdatableDisallowRealyResolvers,
ValidationMessage::UpdatableDisallowRelayResolvers,
field.definition.location,
)
.annotate("The field is defined here:", field_def.name.location),
Expand All @@ -341,7 +341,7 @@ impl<'a> Validator for UpdatableDirective<'a> {
{
return Err(vec![
Diagnostic::error(
ValidationMessage::UpdatableDisallowRealyResolvers,
ValidationMessage::UpdatableDisallowRelayResolvers,
linked_field.definition.location,
)
.annotate("The field is defined here:", field_def.name.location),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extend type Query {
resolver_field: User @relay_resolver(import_path: "ResolverModule")
}
==================================== ERROR ====================================
✖︎ Fields defined using Relay Resolvers are not not allowed within @updatable operations.
✖︎ Fields defined using Relay Resolvers are not allowed within @updatable operations.

resolver-linked.invalid.graphql:3:3
2 │ query resolverQuery @updatable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ extend type Query {
resolver_field: Boolean @relay_resolver(import_path: "ResolverModule")
}
==================================== ERROR ====================================
✖︎ Fields defined using Relay Resolvers are not not allowed within @updatable operations.
✖︎ Fields defined using Relay Resolvers are not allowed within @updatable operations.

resolver-scalar.invalid.graphql:3:3
2 │ query resolverQuery @updatable {
Expand Down

0 comments on commit bc40b4b

Please sign in to comment.