Include reason for panic on different listener addresses
This commit is contained in:
parent
df6d21cfa0
commit
085dbaa8ff
|
@ -161,7 +161,7 @@ func (me *Client) PeerID() string {
|
|||
func (me *Client) ListenAddr() (addr net.Addr) {
|
||||
for _, l := range me.listeners {
|
||||
if addr != nil && l.Addr().String() != addr.String() {
|
||||
panic("listeners exist on different addresses")
|
||||
panic(fmt.Sprintf("listeners are on different addresses: %q != %q", l.Addr().String(), addr.String()))
|
||||
}
|
||||
addr = l.Addr()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue