summaryrefslogtreecommitdiff
path: root/js/codeq
diff options
context:
space:
mode:
authorAleš Smodiš <aless@guru.si>2015-09-18 16:33:46 +0200
committerAleš Smodiš <aless@guru.si>2015-09-18 16:33:46 +0200
commitea3d8109b4f90e83e5581f9434c828785c08d932 (patch)
treef765058dd451c014e67ca820e07980d0f9cafec0 /js/codeq
parentffeb1a12491780d489d96dd7159a09b5fd16090c (diff)
Log errors to console.
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();