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
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
..
httputils remove unnecessary logs from daemon 2015-11-10 17:44:38 +08:00
router Fix error messages 2015-12-29 06:08:52 -08:00
middleware.go authZ: more fixes 2015-12-18 16:29:01 +01:00
middleware_test.go Separate API router from server. 2015-09-29 19:43:03 -04:00
profiler.go api/server fix golint errors/warnings. 2015-07-28 22:44:39 +00:00
server.go Create build router separate from image router. 2015-12-17 16:56:11 -08:00
server_test.go Separate API router from server. 2015-09-29 19:43:03 -04:00
server_unix.go Better error message for invalid unix socket format 2015-12-15 10:05:58 +08:00
server_windows.go Allocate resources for server API before daemon creation 2015-10-05 09:32:08 -07:00