Skip to content

[9.4] [Security Solution][Endpoint] Better error handling for ES errors (#266524)#267961

Merged
kibanamachine merged 1 commit into
elastic:9.4from
kibanamachine:backport/9.4/pr-266524
May 6, 2026
Merged

[9.4] [Security Solution][Endpoint] Better error handling for ES errors (#266524)#267961
kibanamachine merged 1 commit into
elastic:9.4from
kibanamachine:backport/9.4/pr-266524

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.4:

Questions ?

Please refer to the Backport tool documentation

…astic#266524)

## Summary

- Improve error handling of errors, specifically those thrown by ES/SO
clients
- Logic in `wrapErrorIfNeeded()` will now check to see if the error
being wrapped is from ES and if so, it will attempt to generate a better
error message as well as capture additional debug data

(cherry picked from commit 0e7f25b)
@kibanamachine
Copy link
Copy Markdown
Contributor Author

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled in files

id before after diff
securitySolution 105 106 +1

ESLint disabled line counts

id before after diff
securitySolution 753 755 +2

Total ESLint disabled count

id before after diff
securitySolution 858 861 +3

cc @paul-tavares

@kibanamachine kibanamachine merged commit 873800d into elastic:9.4 May 6, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants