mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-29 18:10:48 +02:00
multi: wrap all errors
This commit is contained in:
committed by
Andras Banki-Horvath
parent
9a28a4c105
commit
648fb22f63
10
rpcserver.go
10
rpcserver.go
@ -1919,7 +1919,7 @@ func newPsbtAssembler(req *lnrpc.OpenChannelRequest, normalizedMinConfs int32,
|
||||
bytes.NewReader(psbtShim.BasePsbt), false,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error parsing base PSBT: %v",
|
||||
return nil, fmt.Errorf("error parsing base PSBT: %w",
|
||||
err)
|
||||
}
|
||||
}
|
||||
@ -2144,7 +2144,7 @@ func (r *rpcServer) parseOpenChannelReq(in *lnrpc.OpenChannelRequest,
|
||||
in.CloseAddress, r.cfg.ActiveNetParams.Params,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error parsing upfront shutdown: %v",
|
||||
return nil, fmt.Errorf("error parsing upfront shutdown: %w",
|
||||
err)
|
||||
}
|
||||
|
||||
@ -6513,7 +6513,7 @@ func (r *rpcServer) StopDaemon(_ context.Context,
|
||||
// otherwise some funds wouldn't be picked up.
|
||||
isRecoveryMode, progress, err := r.server.cc.Wallet.GetRecoveryInfo()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("unable to get wallet recovery info: %v",
|
||||
return nil, fmt.Errorf("unable to get wallet recovery info: %w",
|
||||
err)
|
||||
}
|
||||
if isRecoveryMode && progress < 1 {
|
||||
@ -7211,7 +7211,7 @@ func (r *rpcServer) ForwardingHistory(ctx context.Context,
|
||||
}
|
||||
timeSlice, err := r.server.miscDB.ForwardingLog().Query(eventQuery)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("unable to query forwarding log: %v",
|
||||
return nil, fmt.Errorf("unable to query forwarding log: %w",
|
||||
err)
|
||||
}
|
||||
|
||||
@ -8013,7 +8013,7 @@ func (r *rpcServer) FundingStateStep(ctx context.Context,
|
||||
false,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error parsing psbt: %v",
|
||||
return nil, fmt.Errorf("error parsing psbt: %w",
|
||||
err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user