Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upIf there is a parsing error, We were unable to locate which torrent error. #840
Labels
Comments
This comment has been minimized.
This comment has been minimized.
|
@feross what do you think? |
This comment has been minimized.
This comment has been minimized.
|
If there is a parsing error, you can locate which torrent is responsible using var torrent1 = client.add(torrentId1, function (torrent) {
});
torrent1.on('error', function (err) {
console.error('torrent1 error', err);
});
var torrent2 = client.add(torrentId2, function (torrent) {
});
torrent2.on('error', function (err) {
console.error('torrent2 error', err);
});The |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In https://github.com/feross/webtorrent/blob/master/lib/torrent.js#L235
In https://github.com/feross/webtorrent/blob/master/lib/torrent.js#L679
We code:
If there is a parsing error, We were unable to locate which torrent error.
So, we need provide torrentId argument.