make network connect error message readable
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
176088a742
commit
7c85ed3eac
1 changed files with 1 additions and 1 deletions
|
@ -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{}}
|
||||
|
|
Loading…
Reference in a new issue