Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDevAU authored Dec 7, 2023
1 parent 936593d commit e564c26
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/frontmatter-validator/frontmatter-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,13 @@ function main() {

console.log("### Invalid Frontmatter Detected!\n");
allErrors.forEach(({ filePath, fileErrors }) => {
console.log(`| Rule | ${filePath} |`);
console.log("| --- | --- |");
console.log(`| Issues: | |`);
fileErrors.forEach((issue) => console.log(`| | - ${issue} |`));
console.log("\n");
console.log(`#### Rule: ${filePath}\n`);
console.log("Issues:");
fileErrors.forEach(issue => console.log(`- **${issue}**`));
console.log("\n");
});
process.exit(1);

process.exit(1);
}

Expand Down

0 comments on commit e564c26

Please sign in to comment.