From 3a06fca174c7afe84081b5fa84b3e6d6cc3e2751 Mon Sep 17 00:00:00 2001 From: Jorge Marin Date: Wed, 28 Dec 2016 11:30:26 +0000 Subject: [PATCH] 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 Upstream-commit: 2bee1cfd5a1af63d370a72d4558bb96f27762437 Component: engine --- components/engine/daemon/names.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/engine/daemon/names.go b/components/engine/daemon/names.go index 613d45e365..5ce16624ad 100644 --- a/components/engine/daemon/names.go +++ b/components/engine/daemon/names.go @@ -73,9 +73,9 @@ func (daemon *Daemon) reserveName(id, name string) (string, error) { logrus.Errorf("got unexpected error while looking up reserved name: %v", err) return "", err } - 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) + 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) } - return "", fmt.Errorf("error reserving name: %s, error: %v", name, err) + return "", fmt.Errorf("error reserving name: %q, error: %v", name, err) } return name, nil }