this.router.navigate([ '/admin/users/list' ])
},
- err => this.error = err
+ err => this.error = err.message
)
}
this.userService.getUser(userId).subscribe(
user => this.onUserFetched(user),
- err => this.error = err
+ err => this.error = err.message
)
})
}
this.router.navigate([ '/admin/users/list' ])
},
- err => this.error = err
+ err => this.error = err.message
)
}
this.userService.changePassword(newPassword).subscribe(
() => this.notificationsService.success('Success', 'Password updated.'),
- err => this.error = err
+ err => this.error = err.message
)
}
}
this.authService.refreshUserInformation()
},
- err => this.error = err
+ err => this.error = err.message
)
}
}
this.router.navigate([ '/videos/list' ])
},
- err => this.error = err
+ err => this.error = err.message
)
}
}