Skip to content

Commit

Permalink
fix(sandbox): exit if uncaughtException
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Jan 17, 2022
1 parent 5310cc6 commit 43dc2e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/process/master.js
Expand Up @@ -118,7 +118,10 @@ process.on('uncaughtException', err => {
cmd: 'failed',
value: err
});
throw err;

// An uncaughException leaves this process in a potentially undetermined state so
// we must exit
process.exit(-1);
});

/**
Expand Down

0 comments on commit 43dc2e6

Please sign in to comment.