1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
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 Add more unit tests (thus coverage) to pkg api 2015-08-04 19:51:02 +02:00
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
common.go Add a DOCKER_API_VERSION env var 2015-12-14 12:45:34 -08:00
common_test.go Replace pkg/units with docker/go-units. 2015-12-16 12:26:49 -05:00
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