Skip to content

Commit 80e692c

Browse files
qcgm1978Tapppi
authored andcommitted
docs(README): fix syntax error in example (#6)
1 parent 0ef56bc commit 80e692c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

readme.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,13 @@ exitHook.unhandledRejectionHandler(err => {
7676
// Add the second parameter (callback) to indicate async hooks
7777
exitHook.uncaughtExceptionHandler((err, callback) => {
7878
sendErrorToCloudOrWhatever(err) // Returns promise
79-
.then(() => {
80-
console.log('Sent err to cloud');
81-
});
79+
.then(() => {
80+
console.log('Sent err to cloud');
81+
})
8282
.catch(sendError => {
83-
console.error('Error sending to cloud: ', err.stack));
83+
console.error('Error sending to cloud: ', err.stack);
8484
})
8585
.then(() => callback);
86-
});
8786
});
8887

8988
// Add exit hooks for a signal or custom message:

0 commit comments

Comments
 (0)