From b2eda1f755c731976a60a8d97e347a03cfb3896e Mon Sep 17 00:00:00 2001 From: freearhey Date: Mon, 1 Mar 2021 03:13:56 +0300 Subject: [PATCH] Update test.js - fixes issue with error logging - update console message --- scripts/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/test.js b/scripts/test.js index fca3de471a..7fd5aaf55d 100644 --- a/scripts/test.js +++ b/scripts/test.js @@ -51,8 +51,7 @@ async function test() { .catch(error => { if (error.response) { stats.failures++ - utils.writeToLog(country.url, error.message, channel.url) - console.log(`Error: ${error.message} '${channel.url}'`) + utils.writeToLog(item.url, error.message, channel.url) } }) } @@ -62,7 +61,8 @@ async function test() { console.log(`\nOK (${stats.playlists} playlists, ${stats.channels} channels)`) } else { console.log( - `\nFAILURES! (${stats.playlists} playlists, ${stats.channels} channels, ${stats.failures} failures)` + `\nFAILURES! (${stats.playlists} playlists, ${stats.channels} channels, ${stats.failures} failures) + \n\nCheck the "error.log" file to see which links failed.` ) process.exit(1)