Skip to content

Commit

Permalink
show the GraphQL type instead of just the base type while throwing error
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed Aug 19, 2020
1 parent 8f2a780 commit 32766d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ validateErrorToText (toList -> errs) =
TableFieldNonexistent table fieldName ->
"field with name " <> fieldName <<> " not found in table " <>> table
ExpectedTypeButGot expTy actualTy ->
"expected type " <> getBaseTy expTy <<> " but got " <>> getBaseTy actualTy
"expected type " <> G.showGT expTy <<> " but got " <>> G.showGT actualTy
InvalidType ty err ->
"type " <> getBaseTy ty <<> err
InvalidVariable var _ ->
Expand Down

0 comments on commit 32766d2

Please sign in to comment.