Skip to content

Commit 065c690

Browse files
committed
Improving error messages
1 parent cc4de95 commit 065c690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ControllerQueryProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ private function toGraphQlType(Type $type, bool $mapToInputType): TypeInterface
268268
} elseif ($type instanceof Array_) {
269269
return new ListType(new NonNullType($this->toGraphQlType($type->getValueType(), $mapToInputType)));
270270
} else {
271-
throw new GraphQLException("Don't know how to handle type ".((string) $type));
271+
throw TypeMappingException::createFromType($type);
272272
}
273273
}
274274

0 commit comments

Comments
 (0)