channeldb: return correct error when unable to find node
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user