mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-19 20:15:18 +02:00
multi: wrap all errors
This commit is contained in:
committed by
Andras Banki-Horvath
parent
9a28a4c105
commit
648fb22f63
@@ -1038,7 +1038,7 @@ func (w *WalletKit) BumpFee(ctx context.Context,
|
||||
// with an unconfirmed transaction.
|
||||
_, currentHeight, err := w.cfg.Chain.GetBestBlock()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("unable to retrieve current height: %v",
|
||||
return nil, fmt.Errorf("unable to retrieve current height: %w",
|
||||
err)
|
||||
}
|
||||
|
||||
@@ -2607,7 +2607,7 @@ func (w *WalletKit) ImportTapscript(_ context.Context,
|
||||
taprootScope := waddrmgr.KeyScopeBIP0086
|
||||
addr, err := w.cfg.Wallet.ImportTaprootScript(taprootScope, tapscript)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error importing script into wallet: %v",
|
||||
return nil, fmt.Errorf("error importing script into wallet: %w",
|
||||
err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user