Stop test script on error
This commit is contained in:
parent
415141f981
commit
eee975db46
|
@ -34,8 +34,8 @@ function _parsePlaylist(parent, playlist) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var response = await instance.get(file)
|
var response = await instance.get(file)
|
||||||
console.log(file)
|
// console.log(file)
|
||||||
console.log(response.status)
|
// console.log(response.status)
|
||||||
|
|
||||||
// DEBUG: return errors if link is working
|
// DEBUG: return errors if link is working
|
||||||
// var sublist = M3U.parse(response.data);
|
// var sublist = M3U.parse(response.data);
|
||||||
|
@ -47,6 +47,7 @@ function _parsePlaylist(parent, playlist) {
|
||||||
|
|
||||||
if(err.response || err.request) {
|
if(err.response || err.request) {
|
||||||
_writeToLog('testThatAllLinksIsWorking', err.message, file)
|
_writeToLog('testThatAllLinksIsWorking', err.message, file)
|
||||||
|
process.exit(0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue