Log error stack traces
// FREEBIE
This commit is contained in:
@@ -142,6 +142,7 @@
|
|||||||
function onError(ev) {
|
function onError(ev) {
|
||||||
var e = ev.error;
|
var e = ev.error;
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
console.log(e.stack);
|
||||||
|
|
||||||
if (e.name === 'HTTPError' && (e.code == 401 || e.code == 403)) {
|
if (e.name === 'HTTPError' && (e.code == 401 || e.code == 403)) {
|
||||||
extension.install();
|
extension.install();
|
||||||
|
@@ -107,6 +107,7 @@
|
|||||||
var keyErrors = [];
|
var keyErrors = [];
|
||||||
_.each(errors, function(e) {
|
_.each(errors, function(e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
console.log(e.stack);
|
||||||
if (e.error.name === 'OutgoingIdentityKeyError') {
|
if (e.error.name === 'OutgoingIdentityKeyError') {
|
||||||
keyErrors.push(e.error);
|
keyErrors.push(e.error);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user