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

fix: capture non error type in json reporter #856

Merged
merged 1 commit into from Oct 24, 2023

Conversation

vigneshshanmugam
Copy link
Member

  • Throwing non-error type in the steps results in weird String split error as we were trying to split on error.message which is not the correct thing to do. This was already handled in the Base reporter.
  • PR address the same by capturing the throwed primitive values/objects from the Journey/Steps and capturing them as error.message which Kibana uses to visualize the error when running inside Heartbeat.
step('Test', async () => {
  throw 'error';
});

Copy link
Contributor

@emilioalvap emilioalvap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vigneshshanmugam vigneshshanmugam merged commit cb4c8fb into elastic:main Oct 24, 2023
9 checks passed
@vigneshshanmugam vigneshshanmugam deleted the fix-non-error branch October 24, 2023 15:22
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.

None yet

2 participants