From 0558af0ec3c2da5c19129a52115f7685d7cf48bc Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Sat, 20 Apr 2024 02:10:14 +0200 Subject: [PATCH] fix: meaningful error on lack of seed --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 2865511..43318d6 100644 --- a/main.go +++ b/main.go @@ -308,6 +308,8 @@ share the same seed as long as the indexes are different. if err != nil { return err } + } else if rainbowSeedRegex.MatchString(maStr) { + return fmt.Errorf("unable to peer with %q without defining --seed-index of this instance first", maStr) } ai, err := peer.AddrInfoFromString(maStr)