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

Fix an error handling bug in await logic #1899

Merged
merged 1 commit into from
Feb 9, 2022
Merged

Conversation

lblackstone
Copy link
Member

Proposed changes

This code was missing an err check based on the mistaken assumption that it would be checked following the conditional block. This wasn't working as intended due to block scoping.

Related issues (optional)

@lblackstone lblackstone requested a review from a team February 9, 2022 16:54
@github-actions
Copy link

github-actions bot commented Feb 9, 2022

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

This code was missing an err check based on the mistaken assumption that it would be checked following the conditional block. This wasn't working as intended due to block scoping.
@lblackstone lblackstone changed the title Fix an error handling bug in non-CRD await logic Fix an error handling bug in await logic Feb 9, 2022
@github-actions
Copy link

github-actions bot commented Feb 9, 2022

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@lblackstone
Copy link
Member Author

This may also be related to #1883

I think the update would have failed if the annotation was too long rather than silently passing.

@stack72
Copy link
Contributor

stack72 commented Feb 9, 2022

I'm actually surprised that go lint didn't pick this up as an unchecked error!

@lblackstone lblackstone merged commit 4025271 into master Feb 9, 2022
@pulumi-bot pulumi-bot deleted the lblackstone/bug-fix branch February 9, 2022 17:47
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.

None yet

2 participants