diff --git a/client/src/app/+admin/friends/friend-add/friend-add.component.ts b/client/src/app/+admin/friends/friend-add/friend-add.component.ts index 02543d393..e0b73dfa3 100644 --- a/client/src/app/+admin/friends/friend-add/friend-add.component.ts +++ b/client/src/app/+admin/friends/friend-add/friend-add.component.ts @@ -98,7 +98,7 @@ export class FriendAddComponent implements OnInit { setTimeout(() => this.router.navigate([ '/admin/friends/list' ]), 1000) }, - err => this.notificationsService.error('Error', err.text) + err => this.notificationsService.error('Error', err) ) } ) diff --git a/client/src/app/+admin/request-schedulers/request-schedulers-stats/request-schedulers-stats.component.ts b/client/src/app/+admin/request-schedulers/request-schedulers-stats/request-schedulers-stats.component.ts index 4e3fabc64..1edeb31fe 100644 --- a/client/src/app/+admin/request-schedulers/request-schedulers-stats/request-schedulers-stats.component.ts +++ b/client/src/app/+admin/request-schedulers/request-schedulers-stats/request-schedulers-stats.component.ts @@ -57,7 +57,7 @@ export class RequestSchedulersStatsComponent implements OnInit, OnDestroy { this.requestService.getStats().subscribe( stats => this.stats = stats, - err => this.notificationsService.error('Error', err.text) + err => this.notificationsService.error('Error', err) ) } diff --git a/client/src/app/+admin/users/user-edit/user-add.component.ts b/client/src/app/+admin/users/user-edit/user-add.component.ts index 40f649cff..5dc069104 100644 --- a/client/src/app/+admin/users/user-edit/user-add.component.ts +++ b/client/src/app/+admin/users/user-edit/user-add.component.ts @@ -73,7 +73,7 @@ export class UserAddComponent extends UserEdit implements OnInit { this.router.navigate([ '/admin/users/list' ]) }, - err => this.error = err.text + err => this.error = err ) } diff --git a/client/src/app/+admin/users/user-edit/user-update.component.ts b/client/src/app/+admin/users/user-edit/user-update.component.ts index dbac5f974..0966981c0 100644 --- a/client/src/app/+admin/users/user-edit/user-update.component.ts +++ b/client/src/app/+admin/users/user-edit/user-update.component.ts @@ -59,7 +59,7 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy { this.userService.getUser(userId).subscribe( user => this.onUserFetched(user), - err => this.error = err.text + err => this.error = err ) }) } @@ -82,7 +82,7 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy { this.router.navigate([ '/admin/users/list' ]) }, - err => this.error = err.text + err => this.error = err ) } diff --git a/client/src/app/signup/signup.component.ts b/client/src/app/signup/signup.component.ts index 981fe3c3b..65a2d44e3 100644 --- a/client/src/app/signup/signup.component.ts +++ b/client/src/app/signup/signup.component.ts @@ -67,7 +67,7 @@ export class SignupComponent extends FormReactive implements OnInit { this.router.navigate([ '/videos/list' ]) }, - err => this.error = err.text + err => this.error = err ) } } diff --git a/client/src/app/videos/video-watch/video-report.component.ts b/client/src/app/videos/video-watch/video-report.component.ts index 61213cd68..a5758060d 100644 --- a/client/src/app/videos/video-watch/video-report.component.ts +++ b/client/src/app/videos/video-watch/video-report.component.ts @@ -63,7 +63,7 @@ export class VideoReportComponent extends FormReactive implements OnInit { this.hide() }, - err => this.notificationsService.error('Error', err.text) + err => this.notificationsService.error('Error', err) ) } } diff --git a/client/src/app/videos/video-watch/video-watch.component.ts b/client/src/app/videos/video-watch/video-watch.component.ts index 255757692..9cedc9c76 100644 --- a/client/src/app/videos/video-watch/video-watch.component.ts +++ b/client/src/app/videos/video-watch/video-watch.component.ts @@ -158,7 +158,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { this.userRating = 'like' }, - err => this.notificationsService.error('Error', err.text) + err => this.notificationsService.error('Error', err) ) } @@ -175,7 +175,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { this.userRating = 'dislike' }, - err => this.notificationsService.error('Error', err.text) + err => this.notificationsService.error('Error', err) ) } @@ -275,7 +275,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { } }, - err => this.notificationsService.error('Error', err.text) + err => this.notificationsService.error('Error', err) ) }