lack of a peers.json isn't an error, don't log in that case.
This commit is contained in:
parent
4455e77dde
commit
7d24f31fbd
1 changed files with 1 additions and 1 deletions
|
@ -499,7 +499,7 @@ func (a *AddrManager) deserialisePeers(filePath string) error {
|
||||||
|
|
||||||
_, err := os.Stat(filePath)
|
_, err := os.Stat(filePath)
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
return fmt.Errorf("%s does not exist.\n", filePath)
|
return nil
|
||||||
}
|
}
|
||||||
r, err := os.Open(filePath)
|
r, err := os.Open(filePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue