Skip to content

Commit 5e82254

Browse files
committed
just use a plain error class
1 parent 30dd8f9 commit 5e82254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plexus-api/src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export class ApiInstance {
150150
if (this._internalStore.abortOnTimeout) controller.abort()
151151

152152
// if we're throwing, throw an error
153-
if (this._internalStore.throws) throw new WebTransportError('Request timed out')
153+
if (this._internalStore.throws) throw new Error('Request timed out')
154154
// a 504 response status means the programmatic timeout was surpassed
155155
return ApiInstance.createEmptyRes<ResponseDataType>(
156156
timedOut ? 504 : res?.status ?? 513

0 commit comments

Comments
 (0)