Skip to content

Commit

Permalink
Fix Single graphql error message
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloSzx committed Mar 26, 2024
1 parent 3e702d8 commit fd5738b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thick-pants-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@soundxyz/graphql-react-query': patch
---

Fix Single graphql error message
2 changes: 1 addition & 1 deletion packages/graphql-react-query/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class SingleGraphQLError extends Error {
query: string;
variables: typeof SingleGraphQLError.prototype.variables;
}) {
super('Single GraphQL error', { cause: error.message });
super(error.message, { cause: error.message });
this.error = error;
this.query = query;
this.variables = variables;
Expand Down

0 comments on commit fd5738b

Please sign in to comment.