Skip to content

Conversation

@squeed
Copy link
Member

@squeed squeed commented Aug 25, 2022

Previously, we returned an arbitrary string error if the given CNI version didn't support CHECK. This is not useful for downstream consumption and matching.

So, declare an error variable so that users can use errors.Is() instead of matching on a string.

Signed-off-by: Casey Callendrello [email protected]

Previously, we returned an arbitrary string error if the given CNI
version didn't support CHECK. This is not useful for downstream
consumption and matching.

So, declare an error variable so that users can use `errors.Is()`
instead of matching on a string.

Signed-off-by: Casey Callendrello <[email protected]>
@coveralls
Copy link

Coverage Status

Coverage remained the same at 72.211% when pulling 04a39a0 on squeed:check-unsup-version into 40fa479 on containernetworking:main.

@dcbw
Copy link
Member

dcbw commented Sep 12, 2022

/lgtm

@squeed squeed merged commit 8dba382 into containernetworking:main Sep 19, 2022
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.

4 participants