From 7c85ed3eac87184928360828b2977bbfe9528177 Mon Sep 17 00:00:00 2001 From: allencloud Date: Tue, 27 Dec 2016 19:46:10 +0800 Subject: [PATCH] make network connect error message readable Signed-off-by: allencloud --- libnetwork/network.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnetwork/network.go b/libnetwork/network.go index e966dae001..7b6f519d15 100644 --- a/libnetwork/network.go +++ b/libnetwork/network.go @@ -885,7 +885,7 @@ func (n *network) CreateEndpoint(name string, options ...EndpointOption) (Endpoi } if _, err = n.EndpointByName(name); err == nil { - return nil, types.ForbiddenErrorf("service endpoint with name %s already exists", name) + return nil, types.ForbiddenErrorf("endpoint with name %s already exists in network %s", name, n.Name()) } ep := &endpoint{name: name, generic: make(map[string]interface{}), iface: &endpointInterface{}}