This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure callback is called when envoking errorHanlder
A property, errorHanlder, was recently added which will be called instead of throwing an error in the .flush() method. This is important because errors in .flush() could, previously, only be handled via process.on('uncaughtException', err => { ... }). However, this property is currently unusable as, when the flush method invokes this property, it fails to call the callbacks of the events being flushed. This commit makes sure the callbacks are called.
- Loading branch information