lnd: don't print error messages twice during initialization
This commit is contained in:
parent
62fb3a9fee
commit
9780f06faf
4
lnd.go
4
lnd.go
@ -64,15 +64,13 @@ func lndMain() error {
|
||||
}
|
||||
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)
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
return err
|
||||
}
|
||||
cert, err := ioutil.ReadAll(f)
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
return err
|
||||
}
|
||||
defer f.Close()
|
||||
|
Loading…
Reference in New Issue
Block a user