Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyantong2000 committed Oct 22, 2024
1 parent 6a15df5 commit 52cf9bb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ const deployToChrome = async () => {

const token = await chromeStore.fetchToken();
const uploadRes = await chromeStore.uploadExisting(zipFile, token);
console.log('uploadRes: ', JSON.stringify(uploadRes, null, 2));
console.log('chrome uploadRes: ', JSON.stringify(uploadRes, null, 2));

if (uploadRes.uploadState !== 'FAILURE') {
const publishRes = await chromeStore.publish('default', token);
console.log('publishRes: ', { publishRes });
console.log('chrome publishRes: ', JSON.stringify(publishRes, null, 2));
} else {
process.exit(-1);
}
};

Expand All @@ -51,10 +53,10 @@ const deployToEdge = async () => {
filePath: ZIP_PATH,
notes: 'Updating extension.',
});
console.log('Edge publishResp:', publishResp);
console.log('edge publishResp:', publishResp);
} catch (error) {
console.error('Edge Deployment failed:', error);
throw error;
console.error('edge deployment failed:', error.message);
process.exit(-1);
}
};

Expand Down

0 comments on commit 52cf9bb

Please sign in to comment.