diff --git a/bootstrap.js b/bootstrap.js index 40da66c..b62cc9e 100644 --- a/bootstrap.js +++ b/bootstrap.js @@ -234,6 +234,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 => { @@ -272,6 +275,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 => {