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{") + "]";