Merge "GUI stoppig when plenty of deletions"
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / interceptor.ts
index b1b2aa5..65ce887 100644 (file)
@@ -23,7 +23,7 @@ import { HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest
 import { Observable } from 'rxjs';
 import { catchError } from 'rxjs/operators';
 import { throwError } from 'rxjs';
-import { NotificationService } from './services/ui/notification.service';
+import { NotificationService } from '@services/ui/notification.service';
 
 @Injectable()
 export class HttpRequestInterceptor implements HttpInterceptor {
@@ -33,11 +33,11 @@ export class HttpRequestInterceptor implements HttpInterceptor {
         console.log('Interceptor Invoked' + request.url);
         return next.handle(request).pipe(
             catchError((error: HttpErrorResponse) => {
-              console.error("Error from error interceptor", error);
+                console.error("Error from error interceptor", error);
 
-              // show dialog for error message
-              this.notificationService.error(error.message);
-              return throwError(error);
+                // show dialog for error message
+                this.notificationService.error(error.message);
+                return throwError(error);
             })
         ) as Observable<HttpEvent<any>>;
     }