diff --git a/.changeset/thick-pants-act.md b/.changeset/thick-pants-act.md new file mode 100644 index 00000000..52e9afc0 --- /dev/null +++ b/.changeset/thick-pants-act.md @@ -0,0 +1,5 @@ +--- +'@soundxyz/graphql-react-query': patch +--- + +Fix Single graphql error message diff --git a/packages/graphql-react-query/src/errors.ts b/packages/graphql-react-query/src/errors.ts index 2c29eb21..1e999480 100644 --- a/packages/graphql-react-query/src/errors.ts +++ b/packages/graphql-react-query/src/errors.ts @@ -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;