etcdserver: better log message for url mismatch

release-2.1
Xiang Li 2015-06-19 19:34:23 -07:00
parent 9f984ea6ae
commit d295d21349
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ func (c *ServerConfig) verifyLocalMember(strict bool) error {
urls.Sort()
if strict {
if !reflect.DeepEqual(apurls, urls.StringSlice()) {
return fmt.Errorf("%s has different advertised URLs in the cluster and advertised peer URLs list", c.Name)
return fmt.Errorf("advertise URLs of %q do not match in --initial-advertise-peer-urls %s and --initial-cluster %s", c.Name, apurls, urls.StringSlice())
}
}
return nil