Skip to content

Commit

Permalink
fix: meaningful error on lack of seed
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Apr 20, 2024
1 parent 6ea1177 commit 0558af0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ share the same seed as long as the indexes are different.
if err != nil {
return err

Check warning on line 309 in main.go

View check run for this annotation

Codecov / codecov/patch

main.go#L306-L309

Added lines #L306 - L309 were not covered by tests
}
} else if rainbowSeedRegex.MatchString(maStr) {
return fmt.Errorf("unable to peer with %q without defining --seed-index of this instance first", maStr)

Check warning on line 312 in main.go

View check run for this annotation

Codecov / codecov/patch

main.go#L311-L312

Added lines #L311 - L312 were not covered by tests
}

ai, err := peer.AddrInfoFromString(maStr)
Expand Down

0 comments on commit 0558af0

Please sign in to comment.