summaryrefslogtreecommitdiff
path: root/js/codeq
diff options
context:
space:
mode:
Diffstat (limited to 'js/codeq')
-rw-r--r--js/codeq/language.js3
-rw-r--r--js/codeq/login.js1
2 files changed, 3 insertions, 1 deletions
diff --git a/js/codeq/language.js b/js/codeq/language.js
index 78fa83a..1a87097 100644
--- a/js/codeq/language.js
+++ b/js/codeq/language.js
@@ -71,7 +71,8 @@
})
.fail(function (reason) {
$('#disabled').css('display', 'none');
- alert('Login request failed: ' + reason);
+ codeq.log.error('Getting problem definitions failed: ' + reason, reason);
+ alert('Getting problem definitions failed: ' + reason);
})
.done();
}
diff --git a/js/codeq/login.js b/js/codeq/login.js
index b09bf1e..11a4900 100644
--- a/js/codeq/login.js
+++ b/js/codeq/login.js
@@ -19,6 +19,7 @@
.fail(function (reason) {
$('#disabled').css('display', 'none');
$('#disabled').css('cursor', '');
+ codeq.log.error('Login failed: ' + reason, reason);
alert('Login request failed: ' + reason);
})
.done();