Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT]: Trigger the catch node when throwing an error #28

Closed
moritzlang opened this issue Jan 28, 2022 · 2 comments
Closed

[FEAT]: Trigger the catch node when throwing an error #28

moritzlang opened this issue Jan 28, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@moritzlang
Copy link

moritzlang commented Jan 28, 2022

Is your feature request related to a problem? Please describe.
I want to handle errors that occur on the dockerode nodes.

Describe the solution you'd like
Any error should trigger the Catch node of nodered.

Additional context
Calling node.error() with one argument will not trigger a Catch node.
So instead of calling node.error(err) the function should be called with the original message as the second argument.
E.g.: node.error(err, msg)
Documentation

@naimo84
Copy link
Owner

naimo84 commented Jan 29, 2022

hey @moritzlang,

v0.12.0 is online. may you test it?

hopefully every error is catched now 😉

Greets
Benjamin

@naimo84 naimo84 closed this as completed Jan 29, 2022
@moritzlang
Copy link
Author

thanks for the quick adjustment @naimo84!
it works perfectly on my end now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants