Fix unclear error message when deleting container
I was getting the following error: ``` $ bundles/0.7.6-dev/binary/docker-0.7.6-dev run -rm -v=/var/run:/foo base echo hi hi 2014/01/28 14:24:46 Error: container_delete: No such id: run ``` This commit makes the true origin of the error clearer. Issue #3806 is tracking the cause of the error. Docker-DCO-1.1-Signed-off-by: Peter Waller <p@pwaller.net> (github: pwaller)
This commit is contained in:
parent
ed12818f99
commit
70c1781e07
1 changed files with 1 additions and 1 deletions
|
@ -1909,7 +1909,7 @@ func (srv *Server) ContainerDestroy(job *engine.Job) engine.Status {
|
|||
continue
|
||||
}
|
||||
if err := srv.runtime.volumes.Delete(volumeId); err != nil {
|
||||
job.Error(err)
|
||||
job.Errorf("Error calling volumes.Delete(%q): %v", volumeId, err)
|
||||
return engine.StatusErr
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue