Skip to content

Commit f001ae7

Browse files
Update resolveFetchFn.ts
1 parent 25b2092 commit f001ae7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/orkes/helpers/resolveFetchFn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const resolveFetchFn = async (
2020

2121
return ((input: UndiciRequestInfo, init?: UndiciRequestInit) =>
2222
undiciFetch(input, { ...init, dispatcher: undiciAgent })) as FetchFn;
23-
} catch {
24-
return fetch;
23+
} catch {
24+
throw new Error("failed to import undici");
2525
}
2626
};

0 commit comments

Comments
 (0)