diff --git a/scripts/momentOfTruth.js b/scripts/momentOfTruth.js index dfb43fdef71d..8aba5d8bc0f9 100644 --- a/scripts/momentOfTruth.js +++ b/scripts/momentOfTruth.js @@ -66,7 +66,7 @@ async function getLinterResult(swaggerPath) { const { err, stdout, stderr } = await new Promise(res => exec(cmd, { encoding: 'utf8', maxBuffer: 1024 * 1024 * 64 }, (err, stdout, stderr) => res({ err: err, stdout: stdout, stderr: stderr }))); - let resultString = stdout; + let resultString = stdout + stderr; if (resultString.indexOf('{') !== -1) { resultString = "[" + resultString.substring(resultString.indexOf('{')).trim().replace(/\}\n\{/g, "},\n{") + "]"; //console.log('>>>>>> Trimmed Result...');