Skip to content

Commit

Permalink
Fix unclear error message when deleting container
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
pwaller committed Jan 28, 2014
1 parent ed12818 commit 70c1781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 70c1781

Please sign in to comment.