moby--moby/api
Doug Davis b3e1178ad0 Fix error messages
`docker kill 123` will show something like:
`Error response from daemon: Cannot kill container 123: nosuchcontainer: No such container: 123`
Notice the `nosuchcontainer` text, that should not be there as that's an internal ID that means nothing to the end user.
This PR fixes this by using `util.GetErrorMessage()` to extract just the message.

While in that dir I found a couple of other spots that could use the same call, just to be safe.

Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-12-29 06:08:52 -08:00
..
client Merge pull request #18835 from dnephin/move_validate_context_dir 2015-12-28 22:06:13 +01:00
fixtures
server Fix error messages 2015-12-29 06:08:52 -08:00
types Merge pull request #15078 from hqhq/hq_add_set_api_v2 2015-12-28 08:55:32 -08:00
README.md
common.go
common_test.go

README.md

This directory contains code pertaining to the Docker API:

  • Used by the docker client when communicating with the docker daemon

  • Used by third party tools wishing to interface with the docker daemon