Skip to content

Commit

Permalink
Merge pull request #9765 from thaJeztah/improve-error-message-3036
Browse files Browse the repository at this point in the history
Improve error message for conflicting container name.
  • Loading branch information
Jessie Frazelle committed Dec 23, 2014
2 parents 7a3efc9 + aa9c956 commit 034ba8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,8 @@ func (daemon *Daemon) reserveName(id, name string) (string, error) {
} else {
nameAsKnownByUser := strings.TrimPrefix(name, "/")
return "", fmt.Errorf(
"Conflict, The name %s is already assigned to %s. You have to delete (or rename) that container to be able to assign %s to a container again.", nameAsKnownByUser,
utils.TruncateID(conflictingContainer.ID), nameAsKnownByUser)
"Conflict. The name %q is already in use by container %s. You have to delete that container to be able to reuse that name.", nameAsKnownByUser,
utils.TruncateID(conflictingContainer.ID))
}
}
return name, nil
Expand Down

0 comments on commit 034ba8b

Please sign in to comment.