We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55c5723 commit 7675da7Copy full SHA for 7675da7
2 files changed
src/main/java/graphql/schema/idl/errors/SchemaProblem.java
@@ -20,6 +20,11 @@ public SchemaProblem(List<GraphQLError> errors) {
20
this.errors = new ArrayList<>(errors);
21
}
22
23
+ @Override
24
+ public String getMessage() {
25
+ return "errors=" + errors;
26
+ }
27
+
28
public List<GraphQLError> getErrors() {
29
return errors;
30
src/test/groovy/graphql/schema/idl/SchemaParserTest.groovy
@@ -136,8 +136,9 @@ class SchemaParserTest extends Specification {
136
read(spec)
137
138
then:
139
-
140
- thrown(SchemaProblem)
+ def schemaProblem = thrown(SchemaProblem)
+ schemaProblem.getMessage().contains("InvalidSyntaxError")
141
+ schemaProblem.getErrors().size() == 1
142
143
144
def "schema with union"() {
0 commit comments