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

Catch elasticsearch error within the API #1100

Merged
merged 2 commits into from
Jan 6, 2024

Conversation

TristanCacqueray
Copy link
Contributor

@TristanCacqueray TristanCacqueray commented Jan 5, 2024

This change improves error reporting when the elastic client throws errors. The implementation is done in the Monocle.Effects module.

@TristanCacqueray
Copy link
Contributor Author

Would be nice to have a test (e.g. inject a change without a target_branch before performing a search).

This change adds error handling code to catch elastic client exceptions.
Though this change keeps the "call error on failure" behavior using the
`dieOnEsError` helper.
@morucci morucci added the merge me Trigger the merge process label Jan 6, 2024
@mergify mergify bot merged commit 86fb2f0 into change-metrics:master Jan 6, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Trigger the merge process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants