Skip to content

Commit d64d640

Browse files
chore(internal): update global Error reference
1 parent 5183ecd commit d64d640

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ export class Grid {
392392
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
393393
const headersTime = Date.now();
394394

395-
if (response instanceof Error) {
395+
if (response instanceof globalThis.Error) {
396396
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
397397
if (options.signal?.aborted) {
398398
throw new Errors.APIUserAbortError();

0 commit comments

Comments
 (0)