hashicorp / go-multierror

A Go (golang) package for representing a list of errors as a single error.
Mozilla Public License 2.0
2.3k stars 123 forks source link

Check if multierror is nil in WrappedErrors #50

Closed sethvargo closed 3 years ago

sethvargo commented 3 years ago

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 commented 3 years ago

CLA assistant check
All committers have signed the CLA.

mitchellh commented 3 years ago

This looks good to me.