Browse code

Use quoted form of container name and container id

Use quoted form of container name and container id to improve copy-paste avoiding the extra `.` that slips into the clipboard

Signed-off-by: Jorge Marin <chipironcin@users.noreply.github.com>

Jorge Marin authored on 2016/12/28 20:30:26
Showing 1 changed files
... ...
@@ -73,9 +73,9 @@ func (daemon *Daemon) reserveName(id, name string) (string, error) {
73 73
 				logrus.Errorf("got unexpected error while looking up reserved name: %v", err)
74 74
 				return "", err
75 75
 			}
76
-			return "", fmt.Errorf("Conflict. The container name %q is already in use by container %s. You have to remove (or rename) that container to be able to reuse that name.", name, id)
76
+			return "", fmt.Errorf("Conflict. The container name %q is already in use by container %q. You have to remove (or rename) that container to be able to reuse that name.", name, id)
77 77
 		}
78
-		return "", fmt.Errorf("error reserving name: %s, error: %v", name, err)
78
+		return "", fmt.Errorf("error reserving name: %q, error: %v", name, err)
79 79
 	}
80 80
 	return name, nil
81 81
 }