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