Skip to content

Commit 2697844

Browse files
chore(internal): update global Error reference
1 parent 6a9c40f commit 2697844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ export class Kernel {
435435
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
436436
const headersTime = Date.now();
437437

438-
if (response instanceof Error) {
438+
if (response instanceof globalThis.Error) {
439439
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
440440
if (options.signal?.aborted) {
441441
throw new Errors.APIUserAbortError();

0 commit comments

Comments
 (0)