Skip to content

Commit

Permalink
Fix network errors being thrown as Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
N2D4 committed Dec 12, 2024
1 parent 0db15d6 commit ed66dd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stack-shared/src/interface/clientInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export class StackClientInterface {
if (HTTP_METHODS[(params.method ?? "GET") as HttpMethod].idempotent) {
return Result.error(e);
} else {
throw this._createNetworkError(e, session, requestType);
throw await this._createNetworkError(e, session, requestType);
}
}
throw e;
Expand Down

0 comments on commit ed66dd9

Please sign in to comment.