Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge #13

Merged
merged 12 commits into from
Aug 20, 2018
Prev Previous commit
Next Next commit
always log crashes to stdout
  • Loading branch information
askmike committed Aug 18, 2018
commit 05ad8e71f612e1831a13b4a5d1ea455bbb7df305
2 changes: 2 additions & 0 deletions core/workers/pipeline/child.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ process.on('disconnect', function() {

process
.on('unhandledRejection', (message, p) => {
console.error('unhandledRejection', message);
process.send({type: 'error', message: message});
})
.on('uncaughtException', err => {
console.error('uncaughtException', err);
process.send({type: 'error', error: err});
process.exit(1);
});