[addon] improve moch error logging
This commit is contained in:
parent
622e4d7274
commit
5e5e749691
3 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue