We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3bb76ac + 80e851e commit 75061c3Copy full SHA for 75061c3
1 file changed
Sources/GraphQLAPIKit/Errors/GraphQLAPIAdapterError.swift
@@ -22,6 +22,8 @@ public enum GraphQLAPIAdapterError: LocalizedError {
22
init(error: Error) {
23
if let error = error as? GraphQLAPIAdapterError {
24
self = error
25
+ } else if let error = error as? ApolloError {
26
+ self = .graphQl(error.errors.map(GraphQLError.init))
27
} else if let error = error as? URLSessionClient.URLSessionClientError,
28
case let URLSessionClient.URLSessionClientError.networkError(_, response, underlyingError) = error
29
{
0 commit comments