We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d08df6a commit 3f9e1d1Copy full SHA for 3f9e1d1
src/types.ts
@@ -43,7 +43,10 @@ export class ClientError extends Error {
43
this.response = response
44
this.request = request
45
46
- Error.captureStackTrace(this, ClientError)
+ // this is needed as Safari doesn't support .captureStackTrace
47
+ if (typeof Error.captureStackTrace === 'function') {
48
+ Error.captureStackTrace(this, ClientError)
49
+ }
50
}
51
52
private static extractMessage (response: GraphQLResponse): string {
0 commit comments