mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 19:32:24 +08:00
remove debugerrors
We now consider debugerrors harmful: we've run into cases where debugerror.Wrap() hid valuable error information (err == io.EOF?). I've removed them from the main code, but left them in some tests. Go errors are lacking, but unfortunately, this isn't the solution. It is possible that debugerros.New or debugerrors.Errorf should remain still (i.e. only remove debugerrors.Wrap) but we don't use these errors often enough to keep.
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
errors "github.com/ipfs/go-ipfs/util/debugerror"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
iaddr "github.com/ipfs/go-ipfs/util/ipfsaddr"
|
||||
)
|
||||
@ -40,7 +41,7 @@ func (c *Config) BootstrapPeers() ([]BootstrapPeer, error) {
|
||||
func DefaultBootstrapPeers() ([]BootstrapPeer, error) {
|
||||
ps, err := ParseBootstrapPeers(DefaultBootstrapAddresses)
|
||||
if err != nil {
|
||||
return nil, errors.Errorf(`failed to parse hardcoded bootstrap peers: %s
|
||||
return nil, fmt.Errorf(`failed to parse hardcoded bootstrap peers: %s
|
||||
This is a problem with the ipfs codebase. Please report it to the dev team.`, err)
|
||||
}
|
||||
return ps, nil
|
||||
|
Reference in New Issue
Block a user