From 286528f6dfbc579c0164c9f959c5550bd00965b0 Mon Sep 17 00:00:00 2001 From: Sergey Shandar Date: Thu, 28 Feb 2019 11:42:37 -0800 Subject: [PATCH] Fix lintdiff issue (#5299) --- scripts/momentOfTruth.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/momentOfTruth.js b/scripts/momentOfTruth.js index 3d0c36bdf071..754e26a9e38e 100644 --- a/scripts/momentOfTruth.js +++ b/scripts/momentOfTruth.js @@ -64,11 +64,7 @@ async function getLinterResult(swaggerPath) { throw new Error("AutoRest failed"); } - if (stderr !== "") { - console.error(`Error: ${stderr}`) - process.exit(1) - } - let resultString = stdout; + let resultString = stdout + stderr; if (resultString.indexOf('{') !== -1) { resultString = resultString.replace(/Processing batch task - {.*} \.\n/g, ""); resultString = "[" + resultString.substring(resultString.indexOf('{')).trim().replace(/\}\n\{/g, "},\n{") + "]";