Update scripts

CasperMcFadden95-patch-2
freearhey 7 months ago
parent 106f4e0afc
commit e04f8af762

@ -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)`))

@ -18,8 +18,8 @@ export class StreamTester {
return this.checker.checkStream({
url: stream.url,
http: {
referrer: stream.getHttpReferrer(),
'user-agent': stream.getHttpUserAgent()
referrer: stream.getReferrer(),
'user-agent': stream.getUserAgent()
}
})
}

Loading…
Cancel
Save