Skip to content

Commit

Permalink
Unify wording in error messages.
Browse files Browse the repository at this point in the history
Before this change there was:
- There can be only one argument named ...
- There can be only one input field named ...
- There can be only one variable named ...
- There can only be one fragment named ...
- There can only be one operation named ...

Now the last two match the others.
  • Loading branch information
neelance committed Mar 22, 2017
1 parent 2c8d565 commit ba401e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/validation/rules/UniqueFragmentNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { GraphQLError } from '../../error';


export function duplicateFragmentNameMessage(fragName: string): string {
return `There can only be one fragment named "${fragName}".`;
return `There can be only one fragment named "${fragName}".`;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/validation/rules/UniqueOperationNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { GraphQLError } from '../../error';


export function duplicateOperationNameMessage(operationName: string): string {
return `There can only be one operation named "${operationName}".`;
return `There can be only one operation named "${operationName}".`;
}

/**
Expand Down

0 comments on commit ba401e1

Please sign in to comment.