mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 10:56:57 -05:00
Update validate.js
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user