From e4f0e92e755be1332dea7cb161e70a53af5c42ef Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 9 Jul 2018 15:56:02 +0200 Subject: Fix client error logging --- .../app/videos/+video-watch/comment/video-comment.service.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'client/src/app/videos') 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 { return this.authHttp.post(url, normalizedComment) .pipe( - map(data => this.extractVideoComment(data['comment'])), - catchError(this.restExtractor.handleError) + map(data => this.extractVideoComment(data['comment'])), + catchError(err => this.restExtractor.handleError(err)) ) } @@ -43,7 +43,7 @@ export class VideoCommentService { return this.authHttp.post(url, normalizedComment) .pipe( map(data => this.extractVideoComment(data[ 'comment' ])), - catchError(this.restExtractor.handleError) + catchError(err => this.restExtractor.handleError(err)) ) } @@ -62,7 +62,7 @@ export class VideoCommentService { .get(url, { params }) .pipe( map(this.extractVideoComments), - catchError((res) => this.restExtractor.handleError(res)) + catchError(err => this.restExtractor.handleError(err)) ) } @@ -73,7 +73,7 @@ export class VideoCommentService { .get(url) .pipe( map(tree => this.extractVideoCommentTree(tree as VideoCommentThreadTree)), - catchError((res) => this.restExtractor.handleError(res)) + catchError(err => this.restExtractor.handleError(err)) ) } @@ -84,7 +84,7 @@ export class VideoCommentService { .delete(url) .pipe( map(this.restExtractor.extractDataBool), - catchError((res) => this.restExtractor.handleError(res)) + catchError(err => this.restExtractor.handleError(err)) ) } -- cgit v1.2.3