btcsuite / btcwallet

A secure bitcoin wallet daemon written in Go (golang)
ISC License
1.15k stars 590 forks source link

Wrapp all errors #913

Closed guggero closed 9 months ago

guggero commented 9 months ago

In this PR we wrap all errors so we can properly use errors.Is() to find the cause for any error. This is especially useful for database related problems, so the underlying database error can be unwrapped.

guggero commented 9 months ago

Did some more regex foo and found a few more instances. Now there should really be none left (that aren't in test code).