mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Add p-queue timeouts; fix search crash; improve promise rejection logging
This commit is contained in:
committed by
Josh Perez
parent
9f9ce91a9c
commit
bc3b61db1d
@@ -142,7 +142,8 @@ window.onerror = (message, script, line, col, error) => {
|
||||
};
|
||||
|
||||
window.addEventListener('unhandledrejection', rejectionEvent => {
|
||||
window.log.error(
|
||||
`Top-level unhandled promise rejection: ${rejectionEvent.reason}`
|
||||
);
|
||||
const error = rejectionEvent.reason;
|
||||
const errorString =
|
||||
error && error.stack ? error.stack : JSON.stringify(error);
|
||||
window.log.error(`Top-level unhandled promise rejection: ${errorString}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user