lnd: don't print error messages twice during initialization

This commit is contained in:
Olaoluwa Osuntokun 2016-07-16 17:56:28 -07:00
parent 62fb3a9fee
commit 9780f06faf
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

4
lnd.go

@ -64,15 +64,13 @@ func lndMain() error {
} }
defer chanDB.Close() defer chanDB.Close()
// Read btcd's for lnwallet's convenience. // Read btcd's rpc cert for lnwallet's convenience.
f, err := os.Open(loadedConfig.RPCCert) f, err := os.Open(loadedConfig.RPCCert)
if err != nil { if err != nil {
fmt.Fprintln(os.Stderr, err)
return err return err
} }
cert, err := ioutil.ReadAll(f) cert, err := ioutil.ReadAll(f)
if err != nil { if err != nil {
fmt.Fprintln(os.Stderr, err)
return err return err
} }
defer f.Close() defer f.Close()