thenativeweb / node-cqrs-eventdenormalizer

Node-cqrs-eventdenormalizer is a node.js module that implements the cqrs pattern. It can be very useful as eventdenormalizer component if you work with (d)ddd, cqrs, domain, host, etc.
http://cqrs.js.org/pages/eventdenormalizer.html
MIT License
38 stars 27 forks source link

Fixed issue with error handling in event dispatch. #29

Closed jwoudenberg closed 9 years ago

jwoudenberg commented 9 years ago

In an async.series structure, which executes its handlers in parallel, it could happen that one handler tried pushing an element to a variable containing an errors array (line 129), after another handler had reassigned that variable to null (line 139). This lead to a TypeError obscuring the original error the user is interested in.

jwoudenberg commented 9 years ago

I misunderstood the nature of the problem, seems something else is going on. Investigating further, and I will reopen this if applicable.