Skip to content

Commit

Permalink
fix: insert process.exit(1) at correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
AnimeshKumar923 committed Mar 24, 2024
1 parent ccc2e93 commit abbda0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/validation/validate-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ files.forEach((file) => {
console.error(`Validation failed for: ${file}\n`);
errorFilesCount++;
filesWithErrors.push(file);
// process.exit(1);
}

});
Expand All @@ -30,6 +29,8 @@ if (filesWithErrors.length > 0) {
filesWithErrors.forEach((file) => {
console.log(file);
});
process.exit(1);
} else {
console.log('\nAll files validated successfully.');
process.exit(1);
}

0 comments on commit abbda0d

Please sign in to comment.