Quit when get uncaughtException in specs.
This commit is contained in:
parent
cd35430d0e
commit
f07d8c5677
1 changed files with 7 additions and 4 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue