users: show error if update failed

This commit is contained in:
Girish Ramakrishnan
2020-10-23 11:47:37 -07:00
parent d557c8d9eb
commit 62b369ff8a
2 changed files with 3 additions and 0 deletions

View File

@@ -257,6 +257,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
$scope.useredit_form.email.$setPristine();
$('#inputUserEditEmail').focus();
} else {
$scope.useredit.error.generic = error.message;
console.error('Unable to update user:', error);
}