mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Updates daemon's remove link method to use more verbose error output.
Signed-off-by: Aaron Hnatiw <aaron@griddio.com>
This commit is contained in:
parent
3cd54c28fd
commit
b6d2d12e42
1 changed files with 2 additions and 2 deletions
|
@ -54,13 +54,13 @@ func (daemon *Daemon) rmLink(container *container.Container, name string) error
|
|||
}
|
||||
parent, n := path.Split(name)
|
||||
if parent == "/" {
|
||||
return fmt.Errorf("Conflict, cannot remove the default name of the container")
|
||||
return fmt.Errorf("Conflict, cannot remove the default link name of the container")
|
||||
}
|
||||
|
||||
parent = strings.TrimSuffix(parent, "/")
|
||||
pe, err := daemon.containersReplica.Snapshot().GetID(parent)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Cannot get parent %s for name %s", parent, name)
|
||||
return fmt.Errorf("Cannot get parent %s for link name %s", parent, name)
|
||||
}
|
||||
|
||||
daemon.releaseName(name)
|
||||
|
|
Loading…
Reference in a new issue