Skip to content

Commit

Permalink
lnd: use errors.Is for error comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
ellemouton committed Nov 27, 2024
1 parent 14a21ea commit ea32bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lnd.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,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
Expand Down

0 comments on commit ea32bf4

Please sign in to comment.