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
@@ -568,7 +568,7 @@ func (d *DefaultWalletImpl) BuildWalletConfig(ctx context.Context,
|
||||
)
|
||||
cleanUpTasks = append(cleanUpTasks, pccCleanup)
|
||||
if err != nil {
|
||||
err := fmt.Errorf("unable to create partial chain control: %v",
|
||||
err := fmt.Errorf("unable to create partial chain control: %w",
|
||||
err)
|
||||
d.logger.Error(err)
|
||||
return nil, nil, nil, err
|
||||
@@ -1073,7 +1073,7 @@ func (d *DefaultDatabaseBuilder) BuildDatabase(
|
||||
if err != nil {
|
||||
cleanUp()
|
||||
|
||||
err := fmt.Errorf("unable to open %s database: %v",
|
||||
err := fmt.Errorf("unable to open %s database: %w",
|
||||
lncfg.NSTowerClientDB, err)
|
||||
d.logger.Error(err)
|
||||
return nil, nil, err
|
||||
@@ -1088,7 +1088,7 @@ func (d *DefaultDatabaseBuilder) BuildDatabase(
|
||||
if err != nil {
|
||||
cleanUp()
|
||||
|
||||
err := fmt.Errorf("unable to open %s database: %v",
|
||||
err := fmt.Errorf("unable to open %s database: %w",
|
||||
lncfg.NSTowerServerDB, err)
|
||||
d.logger.Error(err)
|
||||
return nil, nil, err
|
||||
@@ -1303,7 +1303,7 @@ func importWatchOnlyAccounts(wallet *wallet.Wallet,
|
||||
addrSchema,
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not import account %v: %v",
|
||||
return fmt.Errorf("could not import account %v: %w",
|
||||
name, err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user