mirror of https://github.com/docker/docs.git
adjust error report to be a single entry
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
This commit is contained in:
parent
5f6a257e0c
commit
93026e166a
|
@ -50,8 +50,7 @@ func (c *Cluster) AddNode(n *Node) error {
|
|||
|
||||
if old, exists := c.nodes[n.ID]; exists {
|
||||
if old.IP != n.IP {
|
||||
log.Errorf("ID duplicated: %s", n.ID)
|
||||
log.Errorf("IP [%s] and [%s] share the same ID", old.IP, n.IP)
|
||||
log.Errorf("ID duplicated. %s shared by %s and %s", n.ID, old.IP, n.IP)
|
||||
}
|
||||
return ErrNodeAlreadyRegistered
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue