message: Move await inside try-catch
  Drop snackBar because there is already a dialog
  Fix access to error message
diff: @@ -136,17 +136,14 @@ export class UserEditComponent implements OnInit {
  }
  this.user.password = this.generatePass(12);
  this.showProgress.toggleLoadingGlobal(true);
  - const user = await this.userDataService.updateItem(this.user);
  try {
  - if (!user) {
  - throw new Error('an unknown error occured');
  - }
  - await this.dialogService.info(
  + await this.userDataService.updateItem(this.user);
  + this.dialogService.info(
  'Password successfully updated',
  - 'Password for user ' + this.user.email + ' was updated to: \'' + this.user.password + '\'').toPromise();
  - this.snackBar.open('Password updated', '', {duration: 3000});
  - } catch (error) {
  - this.snackBar.open(error.json().message, '', {duration: 3000});
  + 'Password for user ' + this.user.email + ' was updated to: \'' + this.user.password + '\''
  + );
  + } catch (err) {
  + this.snackBar.open(err.error.message, 'Dismiss', {duration: 3000});
  }
  this.showProgress.toggleLoadingGlobal(false);
  }
  