Merge pull request #2121 from iptv-org/patch-2023.07.2

Patch 2023.07.2
This commit is contained in:
Ismaël Moret 2023-08-23 09:49:55 +02:00 committed by GitHub
commit 720ed71b54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 1544 additions and 1198 deletions

View file

@ -57,10 +57,10 @@ async function main() {
}
if (localErrors.length) {
logger.info(`\n${chalk.underline(filepath)}`)
console.log(`\n${chalk.underline(filepath)}`)
localErrors.forEach(error => {
const position = `${error.line}:${error.column}`
logger.error(` ${chalk.gray(position.padEnd(4, ' '))} ${error.message.trim()}`)
console.log(` ${chalk.gray(position.padEnd(4, ' '))} ${error.message.trim()}`)
})
errors = errors.concat(localErrors)
@ -68,7 +68,7 @@ async function main() {
}
if (errors.length) {
logger.error(chalk.red(`\n${errors.length} error(s)`))
console.log(chalk.red(`\n${errors.length} error(s)`))
process.exit(1)
}
}

View file

@ -52,7 +52,7 @@ async function main() {
}
if (errors.length) {
logger.info(chalk.underline(filepath))
console.log(chalk.underline(filepath))
console.table(errors, ['type', 'lang', 'xmltv_id', 'site_id', 'name'])
console.log()
stats.files++
@ -60,7 +60,7 @@ async function main() {
}
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)
}
}