projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8ecc6f
)
Improve webtorrent import error message when the torrent has multiple
author
Chocobozzz
<me@florianbigard.com>
Mon, 17 Sep 2018 15:50:51 +0000
(17:50 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Mon, 17 Sep 2018 15:50:51 +0000
(17:50 +0200)
files
server/helpers/webtorrent.ts
patch
|
blob
|
history
diff --git
a/server/helpers/webtorrent.ts
b/server/helpers/webtorrent.ts
index 2fdfd18760d2d54616b841926d621b4db7b0d28e..f4b44bc4ff6c452ca352cd77ccba41ac1580dba5 100644
(file)
--- a/
server/helpers/webtorrent.ts
+++ b/
server/helpers/webtorrent.ts
@@
-24,7
+24,7
@@
function downloadWebTorrentVideo (target: { magnetUri: string, torrentName?: str
if (timer) clearTimeout(timer)
return safeWebtorrentDestroy(webtorrent, torrentId, file.name, target.torrentName)
- .then(() => rej(new Error('
The number of files is not equal to 1 for ' + torrentId
)))
+ .then(() => rej(new Error('
Cannot import torrent ' + torrentId + ': there are multiple files in it'
)))
}
file = torrent.files[ 0 ]