Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav-Eikaas committed Nov 5, 2024
1 parent cfa6b9b commit 164d56e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions github-action/src/utils/uploadBundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ export async function uploadBundle(
'',
headers
);
if (publishResponse.message.statusCode[0] !== 2) {
if (publishResponse.message.statusCode !== 201) {
logInfo(`Failed to publish ${appKey}, code: ${r.message.statusCode}`, 'Red');
throw new Error(JSON.stringify(publishResponse.message));
const body = await publishResponse.readBody()
throw new Error(body)
}
logInfo(`Sucessfully published ${appKey}`, 'Green');
}
Expand Down

0 comments on commit 164d56e

Please sign in to comment.