Skip to content

Commit 005cacf

Browse files
committed
Remove duplicate colon in coercion error message
Replicates graphql/graphql-js@e919361
1 parent 841d058 commit 005cacf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/graphql/utilities/coerce_input_value.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def default_on_error(
2828
) -> None:
2929
error_prefix = "Invalid value " + inspect(invalid_value)
3030
if path:
31-
error_prefix += f" at 'value{print_path_list(path)}': "
31+
error_prefix += f" at 'value{print_path_list(path)}'"
3232
error.message = error_prefix + ": " + error.message
3333
raise error
3434

tests/utilities/test_coerce_input_value.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,6 @@ def throw_error_with_path():
338338
[None], GraphQLList(GraphQLNonNull(GraphQLInt))
339339
)
340340
assert exc_info.value.message == (
341-
"Invalid value None at 'value[0]': :"
341+
"Invalid value None at 'value[0]':"
342342
" Expected non-nullable type Int! not to be None."
343343
)

0 commit comments

Comments
 (0)