Browse code

Fixed a couple of error messages to address UX related comments

Signed-off-by: Madhu Venugopal <madhu@docker.com>

Madhu Venugopal authored on 2015/10/09 17:45:24
Showing 2 changed files
... ...
@@ -286,7 +286,7 @@ func (ep *endpoint) sbJoin(sbox Sandbox, options ...EndpointOption) error {
286 286
 	ep.Lock()
287 287
 	if ep.sandboxID != "" {
288 288
 		ep.Unlock()
289
-		return types.ForbiddenErrorf("a sandbox has already joined the endpoint")
289
+		return types.ForbiddenErrorf("another container is attached to the same network endpoint")
290 290
 	}
291 291
 	ep.Unlock()
292 292
 
... ...
@@ -129,7 +129,7 @@ type ActiveEndpointsError struct {
129 129
 }
130 130
 
131 131
 func (aee *ActiveEndpointsError) Error() string {
132
-	return fmt.Sprintf("network with name %s id %s has active endpoints", aee.name, aee.id)
132
+	return fmt.Sprintf("network %s has active endpoints", aee.name)
133 133
 }
134 134
 
135 135
 // Forbidden denotes the type of this error