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

testutils: adding error wrapping linter #71160

Closed
wants to merge 1 commit into from

Conversation

e-mbrown
Copy link
Contributor

@e-mbrown e-mbrown commented Oct 5, 2021

resolves #42510

Issue: When I run the test. get this error:

exec: "returncheck": executable file not found in $PATH

I get the same error when I try to run TestErrCheck, the test I based mine off of.

There is an issue where error objects are being flattened
stripping them of all their details(stack traces, user hints).
This introduces a linter that will find remaining cases of
unwrapped errors and prevent more cases from occurring.

Release note: None

There is an issue where error objects are being flattened
stripping them of all their details(stack traces, user hints).
This introduces a linter that will find remaining cases of
unwrapped errors and prevent more cases from occurring.

Release note: None
@e-mbrown e-mbrown requested a review from rafiss October 5, 2021 18:39
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@e-mbrown e-mbrown closed this Nov 2, 2021
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.

sql: flattening error objects into other errors erases telemetry data and user hints
2 participants