From bb678323c20793c14a81150c19b2d14881355979 Mon Sep 17 00:00:00 2001 From: Sumiran Aggarwal Date: Thu, 27 Feb 2020 12:15:23 +0530 Subject: [PATCH] Remove duplicate error messages --- lib/main.js | 3 +-- src/main.ts | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/main.js b/lib/main.js index 64d238b76..143e14d9b 100644 --- a/lib/main.js +++ b/lib/main.js @@ -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) { diff --git a/src/main.ts b/src/main.ts index c8eacc796..b6f6b2994 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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) { @@ -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"); } }