Skip to content

Commit

Permalink
CDP - ensure exit on unhandledRejection
Browse files Browse the repository at this point in the history
  • Loading branch information
stoffeastrom committed Dec 19, 2017
1 parent c1b44c2 commit 1fc36ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cdp/index.js
Expand Up @@ -7,6 +7,7 @@ const options = require('./options');

process.on('unhandledRejection', (err) => {
console.error(`Promise Rejection:${err}`);
process.exit(1);
});

const cdp = {
Expand Down

0 comments on commit 1fc36ad

Please sign in to comment.