Skip to content

Commit

Permalink
remove duplicate error (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
suaggar authored Feb 27, 2020
1 parent 6fe9556 commit 4c9203b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ function main() {
}
catch (error) {
isDeploymentSuccess = false;
core.error("Deployment Failed with Error: " + error);
core.setFailed(error);
core.setFailed("Deployment Failed with Error: " + error);
}
finally {
if (deploymentProvider != null) {
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ async function main() {
}
catch(error) {
isDeploymentSuccess = false;
core.error("Deployment Failed with Error: " + error);
core.setFailed(error);
core.setFailed("Deployment Failed with Error: " + error);
}
finally {
if(deploymentProvider != null) {
Expand All @@ -57,6 +56,7 @@ async function main() {

// Reset AZURE_HTTP_USER_AGENT
core.exportVariable('AZURE_HTTP_USER_AGENT', prefix);

core.debug(isDeploymentSuccess ? "Deployment Succeeded" : "Deployment failed");
}
}
Expand Down

0 comments on commit 4c9203b

Please sign in to comment.