Skip to content

Commit

Permalink
Changed to throw error from within catch block
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Albert authored and Jeff Albert committed Feb 23, 2017
1 parent ba1d67b commit efe0e60
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ public void createOrUpdateStack() throws InterruptedException, IOException {
if (e.getMessage().contains("does not exist")) {
getLogger().warn("stack {} not found", stackName);
if (cfnTemplateUrl == null && cfnTemplateFile == null) {
throw new GradleException("cfnTemplateUrl or cfnTemplateFile must be provided");
getLogger().error("cfnTemplateUrl or cfnTemplateFile must be provided");
throw e;
}
createStack(cfn);
} else if (e.getMessage().contains("No updates are to be performed.")) {
Expand Down

0 comments on commit efe0e60

Please sign in to comment.