Skip to content

Commit a6e39a7

Browse files
feedback
1 parent e35e891 commit a6e39a7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/backend/src/bitbucket.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ type ServerGetRequestPath = ClientPathsWithMethod<ServerAPI, "get">;
5252
export const throwOnHttpError: Middleware = {
5353
async onResponse({ response }) {
5454
if (!response.ok) {
55-
const body = await response.clone().text();
5655
throw Object.assign(
57-
new Error(`Bitbucket API ${response.status}: ${body}`),
56+
new Error(`Bitbucket API ${response.status}: ${response.statusText}`),
5857
{ status: response.status },
5958
);
6059
}

0 commit comments

Comments
 (0)