Skip to content

Commit

Permalink
docs(README): fix syntax error in example (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
qcgm1978 authored and Tapppi committed Apr 17, 2018
1 parent 0ef56bc commit 80e692c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,13 @@ exitHook.unhandledRejectionHandler(err => {
// Add the second parameter (callback) to indicate async hooks
exitHook.uncaughtExceptionHandler((err, callback) => {
sendErrorToCloudOrWhatever(err) // Returns promise
.then(() => {
console.log('Sent err to cloud');
});
.then(() => {
console.log('Sent err to cloud');
})
.catch(sendError => {
console.error('Error sending to cloud: ', err.stack));
console.error('Error sending to cloud: ', err.stack);
})
.then(() => callback);
});
});

// Add exit hooks for a signal or custom message:
Expand Down

0 comments on commit 80e692c

Please sign in to comment.