diff --git a/scripts/momentOfTruth.js b/scripts/momentOfTruth.js index c193f883aa9a..079ca28e7bf8 100644 --- a/scripts/momentOfTruth.js +++ b/scripts/momentOfTruth.js @@ -78,6 +78,7 @@ async function getLinterResult(swaggerPath) { console.log(`An error occurred while executing JSON.parse() on the linter output for ${swaggerPath}:`); console.dir(resultString); console.dir(e, { depth: null, colors: true }); + process.exit(1) } } return []; @@ -87,7 +88,7 @@ async function getLinterResult(swaggerPath) { async function runTools(swagger, beforeOrAfter) { console.log(`Processing "${swagger}":`); const linterErrors = await getLinterResult(swagger); - console.log(`Linter produced ${linterErrors.length} results`); + console.log(linterErrors); await updateResult(swagger, linterErrors, beforeOrAfter); }; diff --git a/scripts/momentOfTruthPostProcessing.js b/scripts/momentOfTruthPostProcessing.js index e838c8e683aa..0ebada4bc33f 100644 --- a/scripts/momentOfTruthPostProcessing.js +++ b/scripts/momentOfTruthPostProcessing.js @@ -63,6 +63,7 @@ try { console.log(`Failed to read diff results from file ${logFilepath}`); console.log("File content:"); console.log(data); + process.exit(1) } function compareJsonRef(beforeJsonRef, afterJsonRef) {