Skip to content

Commit 906bbc6

Browse files
authored
Add a hint that more details are available in the exception cause. (#6590)
1 parent 78455fc commit 906bbc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/apollo-tooling/src/main/kotlin/com/apollographql/apollo/tooling/SchemaDownloader.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ object SchemaDownloader {
6969
introspectionSchema = try {
7070
introspectionDataJson.toIntrospectionSchema()
7171
} catch (e: Exception) {
72-
throw Exception("Introspection response from $endpoint can not be parsed", e)
72+
throw Exception("Introspection response from $endpoint can not be parsed (see `cause` for more details)", e)
7373
}
7474
} catch (e: Exception) {
7575
// 2-step introspection didn't work: fallback to no pre-introspection query and minimal introspection query
@@ -82,7 +82,7 @@ object SchemaDownloader {
8282
introspectionSchema = try {
8383
introspectionDataJson.toIntrospectionSchema()
8484
} catch (e: Exception) {
85-
throw Exception("Introspection response from $endpoint can not be parsed", e)
85+
throw Exception("Introspection response from $endpoint can not be parsed (see `cause` for more details)", e)
8686
}
8787
}
8888
}

0 commit comments

Comments
 (0)