mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-01 16:41:39 +01:00
multi: wrap all errors
This commit is contained in:
committed by
Andras Banki-Horvath
parent
9a28a4c105
commit
648fb22f63
@@ -252,7 +252,7 @@ func (s *Server) ImportGraph(ctx context.Context,
|
||||
}
|
||||
|
||||
if err := graphDB.AddLightningNode(node); err != nil {
|
||||
return nil, fmt.Errorf("unable to add node %v: %v",
|
||||
return nil, fmt.Errorf("unable to add node %v: %w",
|
||||
rpcNode.PubKey, err)
|
||||
}
|
||||
|
||||
@@ -285,7 +285,7 @@ func (s *Server) ImportGraph(ctx context.Context,
|
||||
edge.ChannelPoint = *channelPoint
|
||||
|
||||
if err := graphDB.AddChannelEdge(edge); err != nil {
|
||||
return nil, fmt.Errorf("unable to add edge %v: %v",
|
||||
return nil, fmt.Errorf("unable to add edge %v: %w",
|
||||
rpcEdge.ChanPoint, err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user