OCPBUGS-76318: pkg/helpers: Print the right error object#2197
OCPBUGS-76318: pkg/helpers: Print the right error object#2197tchap wants to merge 1 commit intoopenshift:mainfrom
Conversation
CheckOAuthDisabledErr prints a wrong error object. This is now fixed.
|
@tchap: This pull request references Jira Issue OCPBUGS-76318, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
WalkthroughThe pull request modifies error handling in Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
|
/jira refresh |
|
@tchap: This pull request references Jira Issue OCPBUGS-76318, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
|
||
| Original error: | ||
| %w`, details.Kind, details.Group, err)) | ||
| %w`, details.Kind, details.Group, originalError)) |
| } | ||
|
|
||
| if !sets.New[string](oauthv1.GroupVersion.Group, userv1.GroupVersion.Group).Has(details.Group) { | ||
| if details.Group != oauthv1.GroupVersion.Group && details.Group != userv1.GroupVersion.Group { |
There was a problem hiding this comment.
It's IMO more readable, but I can change it back 🙂
There was a problem hiding this comment.
It works for me. No need to change :)
|
Thank you |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ardaguclu, tchap The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/verified by @tchap |
|
@tchap: This PR has been marked as verified by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/retest |
|
@tchap: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/retest |
CheckOAuthDisabledErr prints a wrong error object. This is now fixed.
Also improved readability a bit and fixed some typos.