mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update validate.js
This commit is contained in:
parent
8e7376f0aa
commit
a4b764992f
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ async function main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (errors.length) {
|
if (errors.length) {
|
||||||
logger.info(chalk.underline(filepath))
|
console.log(chalk.underline(filepath))
|
||||||
console.table(errors, ['type', 'lang', 'xmltv_id', 'site_id', 'name'])
|
console.table(errors, ['type', 'lang', 'xmltv_id', 'site_id', 'name'])
|
||||||
console.log()
|
console.log()
|
||||||
stats.files++
|
stats.files++
|
||||||
|
@ -60,7 +60,7 @@ async function main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stats.errors > 0) {
|
if (stats.errors > 0) {
|
||||||
logger.error(chalk.red(`${stats.errors} error(s) in ${stats.files} file(s)`))
|
console.log(chalk.red(`${stats.errors} error(s) in ${stats.files} file(s)`))
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue