Skip to content

Commit 699e067

Browse files
committed
Merge pull request #40 from CaseyBurns/master
Display AWS API error message on failure
2 parents 5386cc2 + 656b750 commit 699e067

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasks/lambda_deploy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ module.exports = function (grunt) {
6363
if(err.statusCode === 404) {
6464
grunt.fail.warn('Unable to find lambda function ' + deploy_function + ', verify the lambda function name and AWS region are correct.');
6565
} else {
66-
grunt.fail.warn('AWS API request failed, check your AWS credentials, region and permissions are correct.');
66+
grunt.log.error('AWS API request failed with ' + err.statusCode + ' - ' + err);
67+
grunt.fail.warn('Check your AWS credentials, region and permissions are correct.');
6768
}
6869
}
6970

0 commit comments

Comments
 (0)