diff --git a/src/main/kotlin/org/starlane/graphqlwskt/client/GraphQLQueryException.kt b/src/main/kotlin/org/starlane/graphqlwskt/client/GraphQLQueryException.kt index f7637ba..2d4e6de 100644 --- a/src/main/kotlin/org/starlane/graphqlwskt/client/GraphQLQueryException.kt +++ b/src/main/kotlin/org/starlane/graphqlwskt/client/GraphQLQueryException.kt @@ -1,7 +1,8 @@ package org.starlane.graphqlwskt.client +import com.google.gson.Gson import graphql.GraphQLException class GraphQLQueryException( val errors: Array> -) : GraphQLException("GraphQL server returned errors") \ No newline at end of file +) : GraphQLException("GraphQL server returned errors: " + Gson().toJson(errors)) \ No newline at end of file