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 --- client/src/app/shared/video-channel/video-channel.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/app/shared/video-channel/video-channel.service.ts') diff --git a/client/src/app/shared/video-channel/video-channel.service.ts b/client/src/app/shared/video-channel/video-channel.service.ts index 0b9900208..8c000665f 100644 --- a/client/src/app/shared/video-channel/video-channel.service.ts +++ b/client/src/app/shared/video-channel/video-channel.service.ts @@ -27,7 +27,7 @@ export class VideoChannelService { .pipe( map(videoChannelHash => new VideoChannel(videoChannelHash)), tap(videoChannel => this.videoChannelLoaded.next(videoChannel)), - catchError(res => this.restExtractor.handleError(res)) + catchError(err => this.restExtractor.handleError(err)) ) } @@ -35,7 +35,7 @@ export class VideoChannelService { return this.authHttp.get>(AccountService.BASE_ACCOUNT_URL + account.nameWithHost + '/video-channels') .pipe( map(res => this.extractVideoChannels(res)), - catchError((res) => this.restExtractor.handleError(res)) + catchError(err => this.restExtractor.handleError(err)) ) } @@ -59,7 +59,7 @@ export class VideoChannelService { const url = VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannelUUID + '/avatar/pick' return this.authHttp.post<{ avatar: Avatar }>(url, avatarForm) - .pipe(catchError(this.restExtractor.handleError)) + .pipe(catchError(err => this.restExtractor.handleError(err))) } removeVideoChannel (videoChannel: VideoChannel) { -- cgit v1.2.3