Skip to content

Commit

Permalink
Improving error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
pazdera committed Nov 29, 2017
1 parent 7faaa11 commit 995a251
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/deploy-methods/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 995a251

Please sign in to comment.