mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
wt-plugin: clearify err msg
This commit is contained in:
parent
59bc5f7dc0
commit
16c2dccfa2
@ -139,6 +139,10 @@ class WebTorrentPlugin extends Plugin {
|
||||
: this.pickAverageVideoFile()
|
||||
}
|
||||
|
||||
if (videoFile === undefined) {
|
||||
throw Error(`Can't update video file since videoFile is undefined.`)
|
||||
}
|
||||
|
||||
// Don't add the same video file once again
|
||||
if (this.currentVideoFile !== undefined && this.currentVideoFile.magnetUri === videoFile.magnetUri) {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user