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

Pass full error object in Function node and copy over cause property #4685

Merged
merged 2 commits into from May 13, 2024

Conversation

knolleary
Copy link
Member

Fixes #4683

This does two things around error handling

  1. preserves the cause property of any Error object passed to node.error(...). This is a standard property of Error so reasonable to copy over.
  2. updates Function node error handling to pass up the whole error object, not just the message string

The results of this will mean if an error thrown in a Function node includes a cause property it will be present on the message sent by a Catch node.

@knolleary knolleary merged commit f55ee6e into master May 13, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

catch node does not preserve error causes
1 participant