summaryrefslogtreecommitdiff
path: root/js/codeq/change_password.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/codeq/change_password.js')
-rw-r--r--js/codeq/change_password.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/codeq/change_password.js b/js/codeq/change_password.js
index 8091a6d..4a050c3 100644
--- a/js/codeq/change_password.js
+++ b/js/codeq/change_password.js
@@ -54,8 +54,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
jqChangePassForm.find('.error.failed').show();
}
})
- .fail(function (reason) {
- alert('Password change failed: ' + reason);
+ .fail(function (error) {
+ var message = 'Changing password failed: ' + error.message;
+ codeq.log.error(message, error);
+ alert(message);
})
.done();
}