Skip to content

Commit e919361

Browse files
CitoIvanGoncharov
authored andcommitted
Remove duplicate colon in coercion error message (#2286)
1 parent 172c411 commit e919361

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/utilities/__tests__/coerceInputValue-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ describe('coerceInputValue', () => {
380380
expect(() =>
381381
coerceInputValue([null], GraphQLList(GraphQLNonNull(GraphQLInt))),
382382
).to.throw(
383-
'Invalid value null at "value[0]": : Expected non-nullable type "Int!" not to be null.',
383+
'Invalid value null at "value[0]": Expected non-nullable type "Int!" not to be null.',
384384
);
385385
});
386386
});

src/utilities/coerceInputValue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function defaultOnError(
4646
) {
4747
let errorPrefix = 'Invalid value ' + inspect(invalidValue);
4848
if (path.length > 0) {
49-
errorPrefix += ` at "value${printPathArray(path)}": `;
49+
errorPrefix += ` at "value${printPathArray(path)}"`;
5050
}
5151
error.message = errorPrefix + ': ' + error.message;
5252
throw error;

0 commit comments

Comments
 (0)