err.text -> err

pull/97/head
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)
},
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(
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' ])
},
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(
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
)
}

View File

@ -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
)
}
}

View File

@ -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)
)
}
}

View File

@ -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)
)
}