Use error.stack instead of error for console log
Chrome/V8 give you the error name, message and callstack at that property, where toString() gives you [object NavigatorUserMediaError] FREEBIE
This commit is contained in:
@@ -156,7 +156,7 @@
|
||||
});
|
||||
var error;
|
||||
if ((error = c.validateNumber())) {
|
||||
console.log(error);
|
||||
console.log(error.stack);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -71,7 +71,7 @@
|
||||
};
|
||||
|
||||
window.onerror = function(message, script, line, col, error) {
|
||||
console.log(error);
|
||||
console.log(error.stack);
|
||||
};
|
||||
}
|
||||
})();
|
||||
|
@@ -70,7 +70,7 @@
|
||||
this.recorder.startRecording();
|
||||
},
|
||||
onError: function(error) {
|
||||
console.log(error);
|
||||
console.log(error.stack);
|
||||
this.close();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user