-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Return a consumererror.permanent from componenterror.CombineErrors() when necessary #1743
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1743 +/- ##
=======================================
Coverage 92.39% 92.39%
=======================================
Files 256 256
Lines 18190 18195 +5
=======================================
+ Hits 16806 16811 +5
Misses 970 970
Partials 414 414
Continue to review full report at Codecov.
|
if permanent { | ||
return consumererror.Permanent(fmt.Errorf("[%s]", strings.Join(errMsgs, "; "))) | ||
} | ||
return fmt.Errorf("[%s]", strings.Join(errMsgs, "; ")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
err := fmt.Errorf("[%s]", strings.Join(errMsgs, "; "))
if permanent {
err = consumererror.Permanent(err)
}
return err
@anuraaga I think you have access to the org branch. Can you update this, it is an easy change. |
Merging this since the internship I think is done. I will fix the comment in a followup PR. |
Signed-off-by: Bogdan Drutu <[email protected]>
Signed-off-by: Bogdan Drutu <[email protected]>
…etry#1743) Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.38.0 to 1.39.0. - [Release notes](https://github.com/golangci/golangci-lint/releases) - [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md) - [Commits](golangci/golangci-lint@v1.38.0...v1.39.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tyler Yahn <[email protected]>
…y#1743) Bumps [boto3](https://github.com/boto/boto3) from 1.24.19 to 1.24.20. - [Release notes](https://github.com/boto/boto3/releases) - [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst) - [Commits](boto/boto3@1.24.19...1.24.20) --- updated-dependencies: - dependency-name: boto3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This PR changes
componenterror.CombineErrors()
to return an error of typeconsumererror.permanent
if any error passed to it is permanent. This PR also has some minor reformating of the testcases inerror_test.go
to make the "{}" align and more readable.resolves #1736
cc @bogdandrutu