File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/main/com/intellij/lang/jsgraphql/schema Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -223,8 +223,12 @@ public TypeDefinitionRegistryWithErrors getRegistryWithErrors(PsiElement scopedE
223223 // Types defined using GraphQL Endpoint Language
224224 if (graphQLEndpointNamedTypeRegistry .hasEndpointEntryFile ()) {
225225 final TypeDefinitionRegistryWithErrors endpointTypesAsRegistry = graphQLEndpointNamedTypeRegistry .getTypesAsRegistry ();
226- typeRegistry .merge (endpointTypesAsRegistry .getRegistry ());
227- errors .addAll (endpointTypesAsRegistry .getErrors ());
226+ try {
227+ typeRegistry .merge (endpointTypesAsRegistry .getRegistry ());
228+ errors .addAll (endpointTypesAsRegistry .getErrors ());
229+ } catch (GraphQLException e ) {
230+ errors .add (e );
231+ }
228232 }
229233
230234 return new TypeDefinitionRegistryWithErrors (typeRegistry , errors );
You can’t perform that action at this time.
0 commit comments