summaryrefslogtreecommitdiff
path: root/js/codeq/change_password.js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-03-25 16:35:57 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-03-30 13:09:29 +0200
commit5b03ea193c1927305fc99b93307b6c74bde0d84d (patch)
tree2a4e991e7ed7913d535e9b42c5daf6c91c9a68fa /js/codeq/change_password.js
parentba9d5eb671997a3a7b82eeb3eb04c0a3e5c3a966 (diff)
Clean up a few error functions
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();
}