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:
parent
98f88607a0
commit
3fbd1ab618
3 changed files with 3 additions and 3 deletions
|
@ -71,7 +71,7 @@
|
|||
};
|
||||
|
||||
window.onerror = function(message, script, line, col, error) {
|
||||
console.log(error);
|
||||
console.log(error.stack);
|
||||
};
|
||||
}
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue