Fix rxjs throw
authorChocobozzz <me@florianbigard.com>
Wed, 16 May 2018 08:50:30 +0000 (10:50 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 16 May 2018 08:51:03 +0000 (10:51 +0200)
client/src/app/login/login.component.ts
client/src/app/shared/rest/rest-extractor.service.ts

index f7b49ec459acd074da638346b09a4248a274f700..2514faf94f6662582b3fbcca1388a0cae8f8a8b7 100644 (file)
@@ -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()
   }
 
index 4cfe28536d3ddecacee5a97f3df697327b893ebf..db087d407c1385451a0e30e05a2b596f3b672411 100644 (file)
@@ -85,8 +85,6 @@ export class RestExtractor {
       errorObj.body = err.error
     }
 
-    observableThrowError(errorObj)
-
-    return of(undefined)
+    return observableThrowError(errorObj)
   }
 }