cockroachdb / cockroach-go

Packages for go clients.
Apache License 2.0
160 stars 70 forks source link

fix: user errors.As for error type assertion #125

Closed aeneasr closed 2 years ago

aeneasr commented 2 years ago

Use proper error unstacking with Go's std libraries. The current code will only check for the first level of nesting whereas Go's std libraries are able to unpack several layers of wrapping.

cockroach-teamcity commented 2 years ago

This change is Reviewable

aeneasr commented 2 years ago

While I have you, if this change would warrant a release, I'd appreciate it :)

rafiss commented 2 years ago

v2.2.7 has been released

aeneasr commented 2 years ago

👍