From 5b03ea193c1927305fc99b93307b6c74bde0d84d Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 25 Mar 2016 16:35:57 +0100 Subject: Clean up a few error functions --- js/codeq/change_password.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'js/codeq/change_password.js') 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 . */ 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(); } -- cgit v1.2.1