We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ef56bc commit 80e692cCopy full SHA for 80e692c
readme.md
@@ -76,14 +76,13 @@ exitHook.unhandledRejectionHandler(err => {
76
// Add the second parameter (callback) to indicate async hooks
77
exitHook.uncaughtExceptionHandler((err, callback) => {
78
sendErrorToCloudOrWhatever(err) // Returns promise
79
- .then(() => {
80
- console.log('Sent err to cloud');
81
- });
+ .then(() => {
+console.log('Sent err to cloud');
+ })
82
.catch(sendError => {
83
- console.error('Error sending to cloud: ', err.stack));
+console.error('Error sending to cloud: ', err.stack);
84
})
85
.then(() => callback);
86
87
});
88
89
// Add exit hooks for a signal or custom message:
0 commit comments