diff --git a/static/index.js b/static/index.js index aa582f845..2db98a382 100644 --- a/static/index.js +++ b/static/index.js @@ -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();