mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-18 13:07:58 +02:00
lnd: use errors.Is for error comparison
This commit is contained in:
parent
ed4279b6f3
commit
8862ce99d5
1 changed files with 1 additions and 1 deletions
2
lnd.go
2
lnd.go
|
|
@ -470,7 +470,7 @@ func Main(cfg *Config, lisCfg ListenerCfg, implCfg *ImplementationCfg,
|
|||
|
||||
dbs, cleanUp, err := implCfg.DatabaseBuilder.BuildDatabase(ctx)
|
||||
switch {
|
||||
case err == channeldb.ErrDryRunMigrationOK:
|
||||
case errors.Is(err, channeldb.ErrDryRunMigrationOK):
|
||||
ltndLog.InfoS(ctx, "Exiting due to BuildDatabase error",
|
||||
slog.Any("err", err))
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue