misc(error-reporting): report unhandled promise rejections (#3886)
This commit is contained in:
Родитель
f19ffd181d
Коммит
9186735ca2
|
@ -50,6 +50,9 @@ sentryDelegate.init = function init(opts) {
|
|||
Sentry.captureException(...args, () => resolve());
|
||||
});
|
||||
};
|
||||
|
||||
// Report any rejections that are never caught
|
||||
process.on('unhandledRejection', reason => sentryDelegate.captureException(reason));
|
||||
} catch (e) {
|
||||
log.warn(
|
||||
'sentry',
|
||||
|
|
Загрузка…
Ссылка в новой задаче