diff --git a/rhodecode/public/js/src/rhodecode/users.js b/rhodecode/public/js/src/rhodecode/users.js --- a/rhodecode/public/js/src/rhodecode/users.js +++ b/rhodecode/public/js/src/rhodecode/users.js @@ -86,9 +86,8 @@ var _showAuthToken = function (authToken }) .fail(function (jqXHR, textStatus, errorThrown) { //reject("Failed to fetch Authentication Token") - var message = formatErrorMessage(jqXHR, textStatus, errorThrown) - Swal.showValidationMessage('Request failed: {0}'.format(message) - ) + var message = formatErrorMessage(jqXHR, textStatus, errorThrown); + ajaxErrorSwal(message); }); }) } diff --git a/rhodecode/public/js/src/rhodecode/utils/ajax.js b/rhodecode/public/js/src/rhodecode/utils/ajax.js --- a/rhodecode/public/js/src/rhodecode/utils/ajax.js +++ b/rhodecode/public/js/src/rhodecode/utils/ajax.js @@ -109,7 +109,7 @@ function formatErrorMessage(jqXHR, textS function ajaxErrorSwal(message) { Swal.fire({ icon: 'error', - title: _gettext('Ajax Error'), + title: _gettext('Ajax Request Error'), html: '{0}'.format(message), showClass: { popup: 'swal2-noanimation',