1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/server/router/container
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
..
backend.go Merge pull request #18715 from calavera/remove_is_paused_from_interface 2015-12-28 11:25:11 -08:00
container.go Implemet docker update command 2015-12-28 19:19:26 +08:00
container_routes.go Fix error messages 2015-12-29 06:08:52 -08:00
copy.go Correct the message of ErrorCodeNoSuchContainer to "No such container" 2015-12-04 15:00:08 +08:00
exec.go Fix error messages 2015-12-29 06:08:52 -08:00
inspect.go Move versioned references of inspect functions to the daemon. 2015-11-24 14:03:39 -05:00