channeldb: return correct error when unable to find node
This commit is contained in:
parent
fb523ff5ac
commit
5c41167858
@ -1172,7 +1172,7 @@ func fetchLightningNode(nodeBucket *bolt.Bucket,
|
|||||||
|
|
||||||
nodeBytes := nodeBucket.Get(nodePub)
|
nodeBytes := nodeBucket.Get(nodePub)
|
||||||
if nodeBytes == nil {
|
if nodeBytes == nil {
|
||||||
return nil, ErrGraphNodesNotFound
|
return nil, ErrGraphNodeNotFound
|
||||||
}
|
}
|
||||||
|
|
||||||
nodeReader := bytes.NewReader(nodeBytes)
|
nodeReader := bytes.NewReader(nodeBytes)
|
||||||
|
Loading…
Reference in New Issue
Block a user