Add a handler for an unhandledRejection.

This commit is contained in:
Michael Bolin
2015-04-23 11:59:17 -07:00
parent 6e074b3695
commit d2cd05ebdc

View File

@@ -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();