Skip to content

Commit

Permalink
update: show explicit error messages when graphql server returns an e…
Browse files Browse the repository at this point in the history
…rror
  • Loading branch information
ItsMateo committed Jun 22, 2023
1 parent 9135ee4 commit a4661ea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package org.starlane.graphqlwskt.client

import com.google.gson.Gson
import graphql.GraphQLException

class GraphQLQueryException(
val errors: Array<Map<String, Any>>
) : GraphQLException("GraphQL server returned errors")
) : GraphQLException("GraphQL server returned errors: " + Gson().toJson(errors))

0 comments on commit a4661ea

Please sign in to comment.