mirror of
https://github.com/iptv-org/iptv
synced 2025-12-17 02:47:33 -05:00
Mark ENOTFOUND in red
This commit is contained in:
@@ -88,7 +88,7 @@ async function runTest(stream: Stream) {
|
|||||||
const result = await tester.test(stream)
|
const result = await tester.test(stream)
|
||||||
|
|
||||||
let status = ''
|
let status = ''
|
||||||
const errorStatusCodes = ['HTTP_NOT_FOUND']
|
const errorStatusCodes = ['ENOTFOUND']
|
||||||
if (result.status.ok) status = chalk.green('OK')
|
if (result.status.ok) status = chalk.green('OK')
|
||||||
else if (errorStatusCodes.includes(result.status.code)) {
|
else if (errorStatusCodes.includes(result.status.code)) {
|
||||||
status = chalk.red(result.status.code)
|
status = chalk.red(result.status.code)
|
||||||
@@ -157,4 +157,3 @@ function onFinish(error: any) {
|
|||||||
|
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user