Skip to content

Commit bccaacc

Browse files
chore(internal): update global Error reference
1 parent a410b4d commit bccaacc

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
@@ -469,7 +469,7 @@ export class Together {
469469
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
470470
const headersTime = Date.now();
471471

472-
if (response instanceof Error) {
472+
if (response instanceof globalThis.Error) {
473473
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
474474
if (options.signal?.aborted) {
475475
throw new Errors.APIUserAbortError();

0 commit comments

Comments
 (0)