We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d1e55f commit 6786a94Copy full SHA for 6786a94
1 file changed
packages/apollo-language-server/src/schema/providers/introspection.ts
@@ -34,7 +34,7 @@ export class IntrospectionSchemaProvider implements GraphQLSchemaProvider {
34
})
35
)) as ExecutionResult<IntrospectionQuery>;
36
37
- if (errors) {
+ if (errors && errors.length) {
38
// XXX better error handling of GraphQL errors
39
throw new Error(errors.map(({ message }: Error) => message).join("\n"));
40
}
0 commit comments