mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-18 05:13:36 +01:00
lnd: use errors.Is for error comparison
This commit is contained in:
parent
ed4279b6f3
commit
8862ce99d5
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)
|
dbs, cleanUp, err := implCfg.DatabaseBuilder.BuildDatabase(ctx)
|
||||||
switch {
|
switch {
|
||||||
case err == channeldb.ErrDryRunMigrationOK:
|
case errors.Is(err, channeldb.ErrDryRunMigrationOK):
|
||||||
ltndLog.InfoS(ctx, "Exiting due to BuildDatabase error",
|
ltndLog.InfoS(ctx, "Exiting due to BuildDatabase error",
|
||||||
slog.Any("err", err))
|
slog.Any("err", err))
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user