From 60870fba0e965fcb89ae56ccff8d4eb098ac0423 Mon Sep 17 00:00:00 2001 From: "Eslam A. Hefnawy" Date: Thu, 3 Mar 2016 12:13:59 +0700 Subject: [PATCH] throw error for failed lambda deployments. Closes #655 --- lib/actions/FunctionDeploy.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/actions/FunctionDeploy.js b/lib/actions/FunctionDeploy.js index 29ee45bb3..db7cc3b86 100644 --- a/lib/actions/FunctionDeploy.js +++ b/lib/actions/FunctionDeploy.js @@ -132,6 +132,9 @@ module.exports = function(SPlugin, serverlessPath) { SUtils.sDebug(region[j].stack); } } + + // throw error for CI + throw new SError('Lambda Deployment Failed.'); } // Display Successful Function Deployments