Quit when get uncaughtException in specs.

This commit is contained in:
Cheng Zhao 2014-05-25 16:16:29 +08:00
parent cd35430d0e
commit f07d8c5677

View file

@ -32,10 +32,13 @@ ipc.on('echo', function(event, msg) {
event.returnValue = msg; event.returnValue = msg;
}); });
process.on('uncaughtException', function(error) { if (process.argv[1] == '--ci') {
console.log(error); process.removeAllListeners('uncaughtException');
window.openDevTools(); process.on('uncaughtException', function(error) {
}); console.error(error, error.stack);
process.exit(1);
});
}
app.on('window-all-closed', function() { app.on('window-all-closed', function() {
app.quit(); app.quit();