aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts
index 8b5abc3f3..f45ffd82f 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -37,6 +37,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
37 userRating: UserVideoRateType = null 37 userRating: UserVideoRateType = null
38 video: Video = null 38 video: Video = null
39 videoPlayerLoaded = false 39 videoPlayerLoaded = false
40 videoNotFound = false
40 41
41 private paramsSub: Subscription 42 private paramsSub: Subscription
42 43
@@ -58,7 +59,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
58 this.videoService.getVideo(uuid).subscribe( 59 this.videoService.getVideo(uuid).subscribe(
59 video => this.onVideoFetched(video), 60 video => this.onVideoFetched(video),
60 61
61 error => console.error(error) 62 error => {
63 this.videoNotFound = true
64 console.error(error)
65 }
62 ) 66 )
63 }) 67 })
64 } 68 }