channeldb: return correct error when unable to find node

This commit is contained in:
Olaoluwa Osuntokun 2017-01-17 12:57:00 -08:00
parent fb523ff5ac
commit 5c41167858
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -1172,7 +1172,7 @@ func fetchLightningNode(nodeBucket *bolt.Bucket,
nodeBytes := nodeBucket.Get(nodePub)
if nodeBytes == nil {
return nil, ErrGraphNodesNotFound
return nil, ErrGraphNodeNotFound
}
nodeReader := bytes.NewReader(nodeBytes)