[addon] improve moch error logging
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user