Skip to content

Commit 0933f75

Browse files
chore(internal): update global Error reference
1 parent dc1c585 commit 0933f75

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
@@ -408,7 +408,7 @@ export class Opencode {
408408
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
409409
const headersTime = Date.now();
410410

411-
if (response instanceof Error) {
411+
if (response instanceof globalThis.Error) {
412412
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
413413
if (options.signal?.aborted) {
414414
throw new Errors.APIUserAbortError();

0 commit comments

Comments
 (0)