Skip to content

Commit

Permalink
Fix error handling to handle new errors, apparently. (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkong-d2l authored Sep 16, 2020
1 parent 2bb93dc commit cac8087
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ module.exports = class BootstrapPlugin {
if (e.statusCode === 404) {
return true;
}
if (e.providerError && e.providerError.statusCode === 404) {
return true;
}
throw new Error('AWS Request Error determining if bootstrap resources bucket exists');
})
.then(create => {
Expand Down Expand Up @@ -388,6 +391,9 @@ module.exports = class BootstrapPlugin {
if (e.statusCode === 404) {
return true;
}
if (e.providerError && e.providerError.statusCode === 404) {
return true;
}
throw new Error('AWS Request Error determining if bootstrap resource already uploaded');
})
.then(upload => {
Expand Down

0 comments on commit cac8087

Please sign in to comment.