[addon] improve moch error logging

This commit is contained in:
TheBeastLT
2021-02-24 11:49:45 +01:00
parent 622e4d7274
commit 5e5e749691
3 changed files with 3 additions and 3 deletions

View File

@@ -95,7 +95,7 @@ async function _resolve(AD, infoHash, cachedEntryInfo, fileIndex) {
return _retryCreateTorrent(AD, infoHash, cachedEntryInfo, fileIndex);
}
return Promise.reject(`Failed AllDebrid adding torrent ${torrent}`);
return Promise.reject(`Failed AllDebrid adding torrent ${JSON.stringify(torrent)}`);
}
async function _createOrFindTorrent(AD, infoHash) {

View File

@@ -110,7 +110,7 @@ async function _resolve(PM, infoHash, cachedEntryInfo, fileIndex, ip) {
console.log(`Retrying downloading to Premiumize ${infoHash} [${fileIndex}]...`);
return _retryCreateTorrent(PM, infoHash, cachedEntryInfo, fileIndex);
}
return Promise.reject("Failed Premiumize adding torrent");
return Promise.reject(`Failed Premiumize adding torrent ${JSON.stringify(torrent)}`);
}
async function _getCachedLink(PM, infoHash, encodedFileName, fileIndex, ip) {

View File

@@ -148,7 +148,7 @@ async function _resolve(RD, infoHash, cachedEntryInfo, fileIndex) {
await _selectTorrentFiles(RD, torrent);
return StaticResponse.DOWNLOADING;
}
return Promise.reject("Failed RealDebrid adding torrent");
return Promise.reject(`Failed RealDebrid adding torrent ${JSON.stringify(torrent)}`);
}
async function _createOrFindTorrentId(RD, infoHash, cachedFileIds, fileIndex) {