From: Chocobozzz Date: Wed, 16 May 2018 08:50:30 +0000 (+0200) Subject: Fix rxjs throw X-Git-Tag: v1.0.0-beta.5~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=133592034881926dc2da63735fe7344bfedd9c31;p=oweals%2Fpeertube.git Fix rxjs throw --- diff --git a/client/src/app/login/login.component.ts b/client/src/app/login/login.component.ts index f7b49ec45..2514faf94 100644 --- a/client/src/app/login/login.component.ts +++ b/client/src/app/login/login.component.ts @@ -40,8 +40,7 @@ export class LoginComponent extends FormReactive implements OnInit { private serverService: ServerService, private redirectService: RedirectService, private notificationsService: NotificationsService, - private formBuilder: FormBuilder, - private router: Router) { + private formBuilder: FormBuilder) { super() } diff --git a/client/src/app/shared/rest/rest-extractor.service.ts b/client/src/app/shared/rest/rest-extractor.service.ts index 4cfe28536..db087d407 100644 --- a/client/src/app/shared/rest/rest-extractor.service.ts +++ b/client/src/app/shared/rest/rest-extractor.service.ts @@ -85,8 +85,6 @@ export class RestExtractor { errorObj.body = err.error } - observableThrowError(errorObj) - - return of(undefined) + return observableThrowError(errorObj) } }