kuzzle
kuzzle copied to clipboard
Add a global error event for pipe errors
Feature Description
Similar to the existing hook:onError event, which allows to add handlers on hook failures, we need a pipe:onError event, allowing users to plug handlers listening to pipe failures.
Example Use Case
- Easily catch faulty pipes
- Add dedicated logs on custom code executions
Possible Solution (optional)
That event should be triggered by the pipe wrapper, which is added to any and all pipes added by the plugins manager.
That event must be listened only by hooks: there is no sense allowing pipes to listen to that event.