Skip to content

Commit

Permalink
Merge pull request #40 from CaseyBurns/master
Browse files Browse the repository at this point in the history
Display AWS API error message on failure
  • Loading branch information
Tim-B committed Oct 24, 2015
2 parents 5386cc2 + 656b750 commit 699e067
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/lambda_deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ module.exports = function (grunt) {
if(err.statusCode === 404) {
grunt.fail.warn('Unable to find lambda function ' + deploy_function + ', verify the lambda function name and AWS region are correct.');
} else {
grunt.fail.warn('AWS API request failed, check your AWS credentials, region and permissions are correct.');
grunt.log.error('AWS API request failed with ' + err.statusCode + ' - ' + err);
grunt.fail.warn('Check your AWS credentials, region and permissions are correct.');
}
}

Expand Down

0 comments on commit 699e067

Please sign in to comment.