Skip to content

Commit

Permalink
channeldb: return correct error when unable to find node
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Jan 17, 2017
1 parent fb523ff commit 5c41167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channeldb/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5c41167

Please sign in to comment.