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/users/user.service.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'client/src/app/shared/users') diff --git a/client/src/app/shared/users/user.service.ts b/client/src/app/shared/users/user.service.ts index 9fe6c8b60..365a21df7 100644 --- a/client/src/app/shared/users/user.service.ts +++ b/client/src/app/shared/users/user.service.ts @@ -25,7 +25,7 @@ export class UserService { return this.authHttp.put(url, body) .pipe( map(this.restExtractor.extractDataBool), - catchError(res => this.restExtractor.handleError(res)) + catchError(err => this.restExtractor.handleError(err)) ) } @@ -35,7 +35,7 @@ export class UserService { return this.authHttp.put(url, profile) .pipe( map(this.restExtractor.extractDataBool), - catchError(res => this.restExtractor.handleError(res)) + catchError(err => this.restExtractor.handleError(err)) ) } @@ -43,14 +43,14 @@ export class UserService { const url = UserService.BASE_USERS_URL + 'me/avatar/pick' return this.authHttp.post<{ avatar: Avatar }>(url, avatarForm) - .pipe(catchError(this.restExtractor.handleError)) + .pipe(catchError(err => this.restExtractor.handleError(err))) } signup (userCreate: UserCreate) { return this.authHttp.post(UserService.BASE_USERS_URL + 'register', userCreate) .pipe( map(this.restExtractor.extractDataBool), - catchError(res => this.restExtractor.handleError(res)) + catchError(err => this.restExtractor.handleError(err)) ) } @@ -58,7 +58,7 @@ export class UserService { const url = UserService.BASE_USERS_URL + '/me/video-quota-used' return this.authHttp.get(url) - .pipe(catchError(res => this.restExtractor.handleError(res))) + .pipe(catchError(err => this.restExtractor.handleError(err))) } askResetPassword (email: string) { @@ -67,7 +67,7 @@ export class UserService { return this.authHttp.post(url, { email }) .pipe( map(this.restExtractor.extractDataBool), - catchError(res => this.restExtractor.handleError(res)) + catchError(err => this.restExtractor.handleError(err)) ) } -- cgit v1.2.3