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

Check if multierror is nil in WrappedErrors #50

Merged
merged 1 commit into from Mar 11, 2021
Merged

Check if multierror is nil in WrappedErrors #50

merged 1 commit into from Mar 11, 2021

Conversation

sethvargo
Copy link
Contributor

This adds a check similar to ErrorsOrNil that ensures the multierror pointer is not nil before returning the Errors field. I believe this is fully backwards-compatible, because the former behavior is a runtime panic.

This adds a check similar to `ErrorsOrNil` that ensures the multierror pointer is not nil before returning the Errors field. I believe this is fully backwards-compatible, because the former behavior is a runtime panic.
@hashicorp-cla
Copy link

hashicorp-cla commented Mar 11, 2021

CLA assistant check
All committers have signed the CLA.

@mitchellh
Copy link
Contributor

This looks good to me.

@mitchellh mitchellh merged commit 9974e9e into hashicorp:master Mar 11, 2021
@sethvargo sethvargo deleted the sethvargo/npe branch March 11, 2021 20:18
This was referenced Mar 11, 2021
This was referenced Mar 12, 2021
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

3 participants