aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-09 15:56:02 +0200
committerChocobozzz <me@florianbigard.com>2018-07-09 15:56:02 +0200
commite4f0e92e755be1332dea7cb161e70a53af5c42ef (patch)
tree3ef52e4a046aa5dff8378722cc17a3f7a4eafb86 /client/src/app/videos
parent5634dfc81161918c2da018989a518f1ef5fe2664 (diff)
downloadPeerTube-e4f0e92e755be1332dea7cb161e70a53af5c42ef.tar.gz
PeerTube-e4f0e92e755be1332dea7cb161e70a53af5c42ef.tar.zst
PeerTube-e4f0e92e755be1332dea7cb161e70a53af5c42ef.zip
Fix client error logging
Diffstat (limited to 'client/src/app/videos')
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comment.service.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comment.service.ts b/client/src/app/videos/+video-watch/comment/video-comment.service.ts
index 5b9a991a0..73526cb3e 100644
--- a/client/src/app/videos/+video-watch/comment/video-comment.service.ts
+++ b/client/src/app/videos/+video-watch/comment/video-comment.service.ts
@@ -31,8 +31,8 @@ export class VideoCommentService {
31 31
32 return this.authHttp.post(url, normalizedComment) 32 return this.authHttp.post(url, normalizedComment)
33 .pipe( 33 .pipe(
34 map(data => this.extractVideoComment(data['comment'])), 34 map(data => this.extractVideoComment(data['comment'])),
35 catchError(this.restExtractor.handleError) 35 catchError(err => this.restExtractor.handleError(err))
36 ) 36 )
37 } 37 }
38 38
@@ -43,7 +43,7 @@ export class VideoCommentService {
43 return this.authHttp.post(url, normalizedComment) 43 return this.authHttp.post(url, normalizedComment)
44 .pipe( 44 .pipe(
45 map(data => this.extractVideoComment(data[ 'comment' ])), 45 map(data => this.extractVideoComment(data[ 'comment' ])),
46 catchError(this.restExtractor.handleError) 46 catchError(err => this.restExtractor.handleError(err))
47 ) 47 )
48 } 48 }
49 49
@@ -62,7 +62,7 @@ export class VideoCommentService {
62 .get(url, { params }) 62 .get(url, { params })
63 .pipe( 63 .pipe(
64 map(this.extractVideoComments), 64 map(this.extractVideoComments),
65 catchError((res) => this.restExtractor.handleError(res)) 65 catchError(err => this.restExtractor.handleError(err))
66 ) 66 )
67 } 67 }
68 68
@@ -73,7 +73,7 @@ export class VideoCommentService {
73 .get(url) 73 .get(url)
74 .pipe( 74 .pipe(
75 map(tree => this.extractVideoCommentTree(tree as VideoCommentThreadTree)), 75 map(tree => this.extractVideoCommentTree(tree as VideoCommentThreadTree)),
76 catchError((res) => this.restExtractor.handleError(res)) 76 catchError(err => this.restExtractor.handleError(err))
77 ) 77 )
78 } 78 }
79 79
@@ -84,7 +84,7 @@ export class VideoCommentService {
84 .delete(url) 84 .delete(url)
85 .pipe( 85 .pipe(
86 map(this.restExtractor.extractDataBool), 86 map(this.restExtractor.extractDataBool),
87 catchError((res) => this.restExtractor.handleError(res)) 87 catchError(err => this.restExtractor.handleError(err))
88 ) 88 )
89 } 89 }
90 90