mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 14:11:04 +02:00
multi: wrap all errors
This commit is contained in:
committed by
Andras Banki-Horvath
parent
9a28a4c105
commit
648fb22f63
@@ -648,7 +648,7 @@ func (a *Agent) openChans(availableFunds btcutil.Amount, numChans uint32,
|
||||
// to open channels to.
|
||||
scores, err = chooseN(numChans, scores)
|
||||
if err != nil {
|
||||
return fmt.Errorf("unable to make weighted choice: %v",
|
||||
return fmt.Errorf("unable to make weighted choice: %w",
|
||||
err)
|
||||
}
|
||||
|
||||
|
@@ -84,7 +84,7 @@ func (c *WeightedCombAttachment) NodeScores(g ChannelGraph, chans []LocalChannel
|
||||
g, chans, chanSize, nodes,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("unable to get sub score: %v",
|
||||
return nil, fmt.Errorf("unable to get sub score: %w",
|
||||
err)
|
||||
}
|
||||
|
||||
|
@@ -341,7 +341,7 @@ func (m *Manager) queryHeuristics(nodes map[NodeID]struct{}, localState bool) (
|
||||
m.cfg.PilotCfg.Graph, totalChans, chanSize, nodes,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("unable to get sub score: %v",
|
||||
return nil, fmt.Errorf("unable to get sub score: %w",
|
||||
err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user