Data Request API helper #10
2 changed files with 2 additions and 4 deletions
|
|
@ -43,11 +43,10 @@ async function main() {
|
|||
await addReleaseAsset(release.data.id, `system.json`);
|
||||
} catch (e) {
|
||||
console.error(`Failed to add assets to the release`);
|
||||
console.error(e)
|
||||
process.exit(1);
|
||||
|
Oliver marked this conversation as resolved
Outdated
|
||||
};
|
||||
|
||||
console.log(`Release created, and files uploaded successfully!`);
|
||||
console.log(`Release created`);
|
||||
};
|
||||
|
Oliver marked this conversation as resolved
Outdated
Oliver
commented
Remove bit about file uploads Remove bit about file uploads
|
||||
|
||||
main();
|
||||
|
|
|
|||
|
|
@ -57,9 +57,8 @@ async function main() {
|
|||
try {
|
||||
const response = await s3Client.send(new PutObjectCommand(params));
|
||||
console.log("Upload successful");
|
||||
console.log(response);
|
||||
} catch (err) {
|
||||
|
Oliver marked this conversation as resolved
Oliver
commented
Remove log Remove log
|
||||
console.error("Error", err);
|
||||
console.error("Upload to s3 failed");
|
||||
};
|
||||
|
Oliver marked this conversation as resolved
Oliver
commented
Remove inclusion of Remove inclusion of `err`
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue
Remove console error now