1
0
Fork 0

err.text -> err

This commit is contained in:
Chocobozzz 2017-09-14 11:58:25 +02:00
parent d592e0a9b2
commit 03b40f2487
7 changed files with 10 additions and 10 deletions

View file

@ -98,7 +98,7 @@ export class FriendAddComponent implements OnInit {
setTimeout(() => this.router.navigate([ '/admin/friends/list' ]), 1000) setTimeout(() => this.router.navigate([ '/admin/friends/list' ]), 1000)
}, },
err => this.notificationsService.error('Error', err.text) err => this.notificationsService.error('Error', err)
) )
} }
) )

View file

@ -57,7 +57,7 @@ export class RequestSchedulersStatsComponent implements OnInit, OnDestroy {
this.requestService.getStats().subscribe( this.requestService.getStats().subscribe(
stats => this.stats = stats, stats => this.stats = stats,
err => this.notificationsService.error('Error', err.text) err => this.notificationsService.error('Error', err)
) )
} }

View file

@ -73,7 +73,7 @@ export class UserAddComponent extends UserEdit implements OnInit {
this.router.navigate([ '/admin/users/list' ]) this.router.navigate([ '/admin/users/list' ])
}, },
err => this.error = err.text err => this.error = err
) )
} }

View file

@ -59,7 +59,7 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy {
this.userService.getUser(userId).subscribe( this.userService.getUser(userId).subscribe(
user => this.onUserFetched(user), 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' ]) this.router.navigate([ '/admin/users/list' ])
}, },
err => this.error = err.text err => this.error = err
) )
} }

View file

@ -67,7 +67,7 @@ export class SignupComponent extends FormReactive implements OnInit {
this.router.navigate([ '/videos/list' ]) this.router.navigate([ '/videos/list' ])
}, },
err => this.error = err.text err => this.error = err
) )
} }
} }

View file

@ -63,7 +63,7 @@ export class VideoReportComponent extends FormReactive implements OnInit {
this.hide() this.hide()
}, },
err => this.notificationsService.error('Error', err.text) err => this.notificationsService.error('Error', err)
) )
} }
} }

View file

@ -158,7 +158,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
this.userRating = 'like' 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' 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)
) )
} }