diff --git a/lib/deploy-methods/s3.js b/lib/deploy-methods/s3.js index 3e5743f..c5638d9 100644 --- a/lib/deploy-methods/s3.js +++ b/lib/deploy-methods/s3.js @@ -105,6 +105,12 @@ function _doReleaseBySync(build, target, data) { childProcess.exec(`aws s3 sync ${path} s3://${target}`, {env}, (err, stdout, stderr) => { if (err) { cleanupCb(); + + if (err.toString().indexOf('aws: command not found')) { + console.log('It looks like you don\'t have the `aws` command on your system that is required to deploy this build.'.red); + console.log('See https://aws.amazon.com/cli/ for instructions how to inststall the AWS CLI.'.red); + } + return reject('Sync failed: ' + err); }