Update scripts

This commit is contained in:
freearhey 2025-04-23 23:34:43 +03:00
parent 51283c736e
commit 94aec6bff5
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)`))