aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-16 19:15:20 +0200
committerChocobozzz <me@florianbigard.com>2018-07-16 19:15:20 +0200
commit6d88de725321e77486788f64a2e2537f5e6ef0cd (patch)
treee91a165da9a434c6855f7b39663ee2d1e888909b /client/src/assets
parent30eac84e71eeb99e70861e5ab75c60fd39dac03c (diff)
downloadPeerTube-6d88de725321e77486788f64a2e2537f5e6ef0cd.tar.gz
PeerTube-6d88de725321e77486788f64a2e2537f5e6ef0cd.tar.zst
PeerTube-6d88de725321e77486788f64a2e2537f5e6ef0cd.zip
Correctly handle error when remote instance is down
Diffstat (limited to 'client/src/assets')
-rw-r--r--client/src/assets/player/peertube-videojs-plugin.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts
index 0dcbe49b1..6d96e1c0b 100644
--- a/client/src/assets/player/peertube-videojs-plugin.ts
+++ b/client/src/assets/player/peertube-videojs-plugin.ts
@@ -268,7 +268,12 @@ class PeerTubePlugin extends Plugin {
268 return this.addTorrent(this.torrent['xs'], previousVideoFile, newOptions, done) 268 return this.addTorrent(this.torrent['xs'], previousVideoFile, newOptions, done)
269 } 269 }
270 270
271 return console.warn(err) 271 // Remote instance is down
272 if (err.message.indexOf('http error from xs param') !== -1) {
273 this.handleError(err)
274 }
275
276 console.warn(err)
272 }) 277 })
273 } 278 }
274 279