cockroachdb / errors

Go error library with error portability over the network
Apache License 2.0
2.08k stars 66 forks source link

Fix the compatibility Cause() API. #17

Closed knz closed 4 years ago

knz commented 4 years ago

pkg/errors has Cause unwrap everything. Our previous implementation was thus incorrect. This patch fixes it.

(Discovered while trying to upgrade crdb's client.Txn to use this package, see CI failures in https://github.com/cockroachdb/cockroach/pull/42854 )


This change is Reviewable

knz commented 4 years ago

thx