Update scripts

This commit is contained in:
freearhey
2025-04-23 23:34:43 +03:00
parent a8d68acd7b
commit b0a299fad7
2 changed files with 8 additions and 3 deletions

View File

@@ -154,9 +154,14 @@ function drawTable() {
}
}
function onFinish() {
function onFinish(error) {
clearInterval(interval)
if (error) {
console.error(error)
process.exit(1)
}
drawTable()
console.log(chalk.red(`\n${errors + warnings} problems (${errors} errors, ${warnings} warnings)`))