mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add a handler for an unhandledRejection.
This commit is contained in:
@@ -5,6 +5,10 @@ window.onload = function() {
|
||||
try {
|
||||
var startTime = Date.now();
|
||||
|
||||
process.on('unhandledRejection', function(error, promise) {
|
||||
console.error('Unhandled promise rejection %o with error: %o', promise, error);
|
||||
});
|
||||
|
||||
// Ensure ATOM_HOME is always set before anything else is required
|
||||
setupAtomHome();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user