Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scripts/momentOfTruth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
Expand All @@ -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);
};

Expand Down
1 change: 1 addition & 0 deletions scripts/momentOfTruthPostProcessing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down