|
|
@ -137,6 +137,6 @@ window.onerror = (message, script, line, col, error) => {
|
|
|
|
|
|
|
|
|
|
|
|
window.addEventListener('unhandledrejection', rejectionEvent => {
|
|
|
|
window.addEventListener('unhandledrejection', rejectionEvent => {
|
|
|
|
const error = rejectionEvent.reason;
|
|
|
|
const error = rejectionEvent.reason;
|
|
|
|
const errorInfo = error && error.stack ? error.stack : JSON.stringify(error);
|
|
|
|
const errorInfo = error && error.stack ? error.stack : error;
|
|
|
|
window.log.error(`Top-level unhandled promise rejection: ${errorInfo}`);
|
|
|
|
window.log.error('Top-level unhandled promise rejection:', errorInfo);
|
|
|
|
});
|
|
|
|
});
|
|
|
|