mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
log single request error
This commit is contained in:
@@ -28,7 +28,7 @@ function torrent(torrentId, config = {}, retries = 2) {
|
||||
.then((body) => parseTorrentPage(body))
|
||||
.then((torrent) => torrent.map(el => ({ torrentId: slug, ...el })))
|
||||
.catch((err) => {
|
||||
console.warn(`Failed ${slug} request: `, err);
|
||||
console.warn(`Failed Comando ${slug} request: `, err);
|
||||
return torrent(slug, config, retries - 1)
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user