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

controllers: Fix checking errors via ErrorNotFound #1555

Merged
merged 1 commit into from
Aug 20, 2019
Merged

controllers: Fix checking errors via ErrorNotFound #1555

merged 1 commit into from
Aug 20, 2019

Conversation

felder-cl
Copy link
Contributor

Use the Cause(..) of the error for checking against the ErrorNotFound value.

This prevents future regressions where the underlying function may Wrap(..) the returned error, causing the condition to fail when it should not.

Use the Cause(..) of the error for checking against the ErrorNotFound value.

This prevents future regressions where the underlying function may Wrap(..)
the returned error, causing the condition to fail when it should not.
@felder-cl felder-cl merged commit 4b8b8fc into smartcontractkit:develop Aug 20, 2019
@felder-cl felder-cl deleted the fix/controllers-use-cause branch August 20, 2019 05:29
mateusz-sekara pushed a commit that referenced this pull request Jan 10, 2025
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.

2 participants