Skip to content

Commit

Permalink
ELEMENTS-1480: show response message for 400 status code
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabez0r committed Apr 19, 2022
1 parent d0a0a39 commit 12190f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/nuxeo-user-group-management/nuxeo-user-profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ import '../nuxeo-button-styles.js';
.catch((error) => {
if (error.status === 401) {
this._toast(this.i18n('userProfile.password.wrong'), true);
} else if (error.status === 400 && error.message) {
this._toast(error.message);
} else {
this._toast(this.i18n('userProfile.password.error'), true);
}
Expand Down

0 comments on commit 12190f8

Please sign in to comment.