.pipe(
map(videoChannelHash => new VideoChannel(videoChannelHash)),
tap(videoChannel => this.videoChannelLoaded.next(videoChannel)),
- catchError(res => this.restExtractor.handleError(res))
+ catchError(err => this.restExtractor.handleError(err))
)
}
return this.authHttp.get<ResultList<VideoChannelServer>>(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))
)
}
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) {