Skip to content

Commit

Permalink
use rawError
Browse files Browse the repository at this point in the history
  • Loading branch information
rnegron committed Jan 29, 2025
1 parent 60a11b4 commit f41e1a9
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions packages/cli/src/utils/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,15 +459,19 @@ const upload = async (

startSpinner(`Uploading version ${definition.version}`);
try {
await callAPI(`/apps/${app.id}/versions/${definition.version}`, {
method: 'PUT',
body: {
zip_file: buffer,
source_zip_file: sourceBuffer,
skip_validation: skipValidation,
await callAPI(
`/apps/${app.id}/versions/${definition.version}`,
{
method: 'PUT',
body: {
zip_file: buffer,
source_zip_file: sourceBuffer,
skip_validation: skipValidation,
},
extraHeaders: headers,
},
extraHeaders: headers,
});
true,
);
} catch (err) {
endSpinner({ success: false });
// 409 from the backend specifically signals that the last changes were from a partner
Expand Down

0 comments on commit f41e1a9

Please sign in to comment.