Skip to content

Commit b473e2f

Browse files
committed
catch throwing errors when calling callback
1 parent fce34e2 commit b473e2f

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

.eslintrc

-7
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ globals:
3333
angular: false
3434
jQuery: false
3535

36-
settings:
37-
jsx: true
38-
39-
plugins: [react]
40-
ecmaFeatures:
41-
jsx: true
42-
4336
rules:
4437
# ERRORS
4538
no-unused-vars: [2, {vars: all, args: none}]

lib/pm.js

+1
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ _.extend(ProcessManagement.prototype, {
366366
} catch (e) {
367367
debug(e);
368368
console.log(e.stack);
369+
process.emit('uncaughtException', e);
369370
}
370371
}
371372
});

releasenotes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## [v1.6.5](https://github.com/adrai/node-cqrs-saga/compare/v1.6.4...v1.6.5)
1+
## [v1.6.6](https://github.com/adrai/node-cqrs-saga/compare/v1.6.4...v1.6.6)
22
- catch throwing errors when calling callback
33

44
## [v1.6.4](https://github.com/adrai/node-cqrs-saga/compare/v1.6.3...v1.6.4)

0 commit comments

Comments
 (0)