lack of a peers.json isn't an error, don't log in that case.

This commit is contained in:
Owain G. Ainsworth 2013-10-02 15:25:43 +01:00
parent 4455e77dde
commit 7d24f31fbd

View file

@ -499,7 +499,7 @@ func (a *AddrManager) deserialisePeers(filePath string) error {
_, err := os.Stat(filePath)
if os.IsNotExist(err) {
return fmt.Errorf("%s does not exist.\n", filePath)
return nil
}
r, err := os.Open(filePath)
if err != nil {