mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-27 19:06:17 +02:00
multi: wrap all errors
This commit is contained in:
committed by
Andras Banki-Horvath
parent
9a28a4c105
commit
648fb22f63
@@ -1140,7 +1140,7 @@ func toPairSnapshot(pairResult *PairHistory) (*routing.MissionControlPairSnapsho
|
||||
pairResult.History.FailTime,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("%v invalid failure: %v", pairPrefix,
|
||||
return nil, fmt.Errorf("%v invalid failure: %w", pairPrefix,
|
||||
err)
|
||||
}
|
||||
|
||||
@@ -1150,7 +1150,7 @@ func toPairSnapshot(pairResult *PairHistory) (*routing.MissionControlPairSnapsho
|
||||
pairResult.History.SuccessTime,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("%v invalid success: %v", pairPrefix,
|
||||
return nil, fmt.Errorf("%v invalid success: %w", pairPrefix,
|
||||
err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user